• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

POST to JSP

 
Frank Albright
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic