aspose file tools*
The moose likes JSP and the fly likes how to get the full details of the link which i clicked in next jsp through jsp 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 » JSP
Bookmark "how to get the full details of the link which i clicked in next jsp through jsp" Watch "how to get the full details of the link which i clicked in next jsp through jsp" New topic
Author

how to get the full details of the link which i clicked in next jsp through jsp

suresh bora
Greenhorn

Joined: Apr 08, 2012
Posts: 2

dis print.java will display all the content of the table post_text. in a link form in a java server page
now clicking any of the link will take me to another jsp page where all other details will also come along .
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30762
    
156

Welcome to CodeRanch! I fixed the code tags to make the post look better.

I'm not sure if the code posted below goes with the first jsp or the "next jsp." Regardless there are two techniquies:
1) Pass the data through URL parameters. This works if it is short/non sensitive.
2) Pass just the key through URL parameters and look up the rest form the database.

Also, you might consider using a different book/tutorial. Having scriptlets and database lookup in a JSP has been considered poor practice for many years. Sarch for MVC for a better approach.


[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
 
jQuery in Action, 2nd edition
 
subject: how to get the full details of the link which i clicked in next jsp through jsp