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 Spring in Action this week in the Spring 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: 9304
    
  17

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: 61417
    
  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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing texbox values from one html page to another