wood burning stoves*
The moose likes Servlets and the fly likes Form post at server-side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Form post at server-side" Watch "Form post at server-side" New topic
Author

Form post at server-side

Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
How to pass parameters from servlet to the page running at different server (not Java page, its MS-Page (ASP)). Which not only passes parameters but also should get response from the other server.
Is RequestDispatcher solves the problem? or is there any other API.
Thx
[This message has been edited by Anil Vupputuri (edited June 12, 2001).]


SCJP 1.5, SCEA, ICED (287,484,486)
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
Hello,
Well u can use either request dispatcher or URL class for the same purpose and I also feel that there would not be any change
in code because of the change in server.
------------------
Try and Try Till u succeed
Sandeep Jain


Try and Try Till u succeed<br /> <br />Sandeep Jain
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Hi Sandeep,
Thx. for the response. So which is better of URL,URLConnection and HttpURLConnection. I think all these classes serves the requirement.
My requirement is to call the cgi script file on the other server, which in turn creates gif files based upon parameter values. So I need to capture all the generated gif files and should be able to display in my page. So what could be the better way ? When I use all these URLConnection classes, I can able to get HTML content, but what abt gif files, how to deal?
Thx.
[This message has been edited by Anil Vupputuri (edited June 13, 2001).]
Anil Vupputuri
Ranch Hand

Joined: Oct 31, 2000
Posts: 527
Any ideas ??
Thx
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Form post at server-side
 
Similar Threads
what is the attribute in servlet ?
Difference between getParameter() and getAttribute()
populating forms in jsp
call a jsp from one server to another and back
Applets reading from .asp