aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "POST to JSP" Watch "POST to JSP" New topic
Author

POST to JSP

Frank Albright
Greenhorn

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
Rancher

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

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.
 
 
subject: POST to JSP