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 Java 8 in Action this week in the Java 8 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: 12682
    
    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

Java Resources at www.wbrogden.com
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.
 
jQuery in Action, 2nd edition
 
subject: POST to JSP
 
Similar Threads
Pagination help
Delete a row from the result page
Funny error
Forcing Tomcat to see css/image files
HTTP Status 500