File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Passing parameters from JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Passing parameters from JSP" Watch "Passing parameters from JSP" New topic
Author

Passing parameters from JSP

Akhilesh Murthy
Greenhorn

Joined: Oct 07, 2009
Posts: 24

Hi, I need to pass on parameters from from on JSP to another JSP on click of a reference (href HTML tag).
Please let me know how to go about it.

Thanks,
Akhilesh
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

First, read up on MVC (model view controller). JSPs should call something on the server like a servlet and not JSPs directly. JSPs are just for display.

To pass parameters in a URL, it looks like myUrl?one=1&two=2


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Akhilesh Murthy
Greenhorn

Joined: Oct 07, 2009
Posts: 24

If i have the URL where i have all the parameters present which needs to be sent out to another JSP can I use href tags.
Something like this.



And in the Test.jsp i have request.getParameter to fetch the value sent.
Will it work?
Thanks,
Akhilesh
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing parameters from JSP
 
Similar Threads
jsp:param vs request.getParameter()
passing parameters
tag file doubt
Passing parameters from Servlet to JSP
passing parameters from servlet to jsp