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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
internet detective
Marshal

Joined: May 26, 2003
Posts: 29220
    
135

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the full details of the link which i clicked in next jsp through jsp
 
Similar Threads
Jsp and javabean
Number Format Exception
Logic for dealing with resultSet
To show the Error message at the login.jsp page using servlet
jquery script not executing on the data values that are extracted from the database