Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
suresh bora
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 34672
367
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic