File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes POST to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "POST to JSP" Watch "POST to JSP" New topic


Frank Albright

Joined: Feb 19, 2000
Posts: 23
I am trying to POST information from my java class to a JSP using an HttpURLConnection. Has anyone done this before?
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
That should work just fine - but if you are not POSTing from a browser, why use a JSP page, why not a servlet?
Frank Albright

Joined: Feb 19, 2000
Posts: 23
Actually, I'm creating a java object that will pass some information to several JSP's. The JSP's will take those parameters and get information from the database and create the page. The page will be returned to my object, where I will store all my JSP's in a Hashtable and send them through a stream for someone else to use.
I actually got it working this afternoon using a JSP that someone at work had already developed. Pretty neat.
I agree. Here's the link:
subject: POST to JSP
jQuery in Action, 3rd edition