• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Web client to obtain data from 2 servers [newbie question]

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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.
or
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.

any comments/suggestions is most appreciated!

thank you!
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
c orange
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello,

thanks for the comments.

so aside from ths vpn issue(assuming i can get past that),
do you think the web app(all other aspects of it) is really quite a task(more than 3months?)
for a novice to create?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest looking at the HttpClient toolkit - open source java from the Apache commons project.

Here is a place to start.

Bill
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic