Please let me know if this is the wrong category to put this.
I am attempting to create a web application(using jsp, servlets, maybe javabeans too) that
can connect to 2 different servers hosted externally.
question 1: should i do this(as i just tried it) <form action="https://www.abcd.com/servlet/XYZLoginServlet" method="post">
<input type="text" name="username"> , <input type="text" name="password"> in my GoToSite.jsp file.
should i place these 3 strings in a GotoSiteServlet.java file?
basically should the jsp "deal" with the connecting, and handling of the response object. or should that really be a Servlet.java role?
question 2: Server A specifically indicates to provide those 2 parameters and call their loginServlet. but with the response object returned, either to the JSP or the Servlet file(whichever i ultimately choose), how would i dismantle the returned object to get specific info? a direct connect/startup of the app on Server A provides many dropdown lists that users can choose. Server A app also does not provide any APIs, so not sure how to call methods thru the Server A app to get info required. No permissions granted to connect to database hosting Server's data either.
question 3: application on Server B can only be accessed if i'm on VPN. is it possible to establish a connection using jsp,servlet,beans technology in java for my app?
in view of these, is this an impossible or over-the-top(OTT) application to get created?
if not OTT, how long would it take to create this bearing in mind, i'm VERY new to this.
Even if you were experienced this would be a problem.
#3 strikes me as a showstopper. You aren't going to able to access something behind a (VPN) firewall. You'll need to talk to the server people about a way to open it up. Or more likely to export the data someplace where it can be accessed.