Integrating Java(web servlets) into django as front end.
166 views
Skip to first unread message
prince gosavi
unread,
Mar 25, 2018, 2:33:28 PM3/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Hi,
I am working on a project where the framework used is django and most of the frontend is done in java. I need a way to integrate both of them so that my system works. Converting java code to python is not an option.As I do not have time to start learning Java now. Any help is appreciated.
Regards
Cictani
unread,
Mar 25, 2018, 3:12:59 PM3/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
What do these servlet output? Html, Json, xml?
prince gosavi
unread,
Mar 25, 2018, 3:20:01 PM3/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
They return html pages as ouput
Cictani
unread,
Mar 25, 2018, 3:24:54 PM3/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
And they should be displayed as they are generated or do you need a different design?
prince gosavi
unread,
Mar 25, 2018, 3:50:20 PM3/25/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I want to use the data from the models and then display it using the html from servlet.
Cictani
unread,
Mar 26, 2018, 12:32:40 AM3/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Models from Django?
That won't work. You should recreate the functionality of the servlet in Django.
Jason
unread,
Mar 26, 2018, 6:09:19 AM3/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Or have the servelet call the django api endpoints and incorporate the data before rendering the html response
zubair alam
unread,
Mar 26, 2018, 11:25:42 AM3/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
One solution would be as following:
Let Java EE application consume the Rest API provided by Django (using DRF library which uses Django Models, its own serializers and viewsets).
You have to maintain a mapping of services and views provided by Java EE application with Django Rest APIs.
Other solution would be which I suppose not what you asked for is following:
Have a client side app in Angular / React / similar framework
This client side app will call services from Django and Java EE both as per your business requirement
With the help of Nginx you can call apis and services from multiple backend applications.
prince gosavi
unread,
Mar 26, 2018, 11:31:11 AM3/26/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
Ok thanks for the suggestions I will try them all and see which fits my requirements and provide a feedback. Regards
On Monday, March 26, 2018 at 12:03:28 AM UTC+5:30, prince gosavi wrote: