Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Passing texbox values from one html page to another

 
pratapsiva sivakumar
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want a servlet to get values from one html page and pass the values to another html page.How is to be done?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Servlets can talk with JSPs, not HTML. You can take a request parameter in the servlet and send the result to a JSP page as a request attribute. Use the <%= %> or equivalent custom tag to print the value to the user.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The EL solution for this would be to use ${param.parameterName}...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64613
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ankit Garg wrote:The EL solution for this would be to use ${param.parameterName}...

Quoted for emphasis. At this stage, all new JSP code should completely omit any usage of Java scriptlets.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic