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
Register / Login


JavaRanch » Java Forums » Java » Servlets
Reply 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: 6603
    
    1

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 - SCJP Mocks - SCJP 5 Mock exam (Word document ) - SCJP 5 Mock exam in Java.Inquisition format
Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

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: 56554
    
  14

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing texbox values from one html page to another
 
Similar Threads
Passing Multiple Values to another jsp page from a List Box
servlet to servlet communication
I ma Getting Javascript Error Permission denied.
html to html communication
alternative to request.getParameter(string) in jsp page?