aspose file tools
The moose likes Servlets and the fly likes Passing texbox values from one html page to another Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing texbox values from one html page to another" Watch "Passing texbox values from one html page to another" New topic
Author

Passing texbox values from one html page to another

pratapsiva sivakumar
Greenhorn

Joined: Nov 10, 2008
Posts: 18
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

Joined: Feb 24, 2006
Posts: 6662
    
    5

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.


SCJP 6 articles - SCJP 5/6 mock exams - More SCJP Mocks
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9326
    
  19

The EL solution for this would be to use ${param.parameterName}...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61967
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
wood burning stoves
 
subject: Passing texbox values from one html page to another