Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

how to distinguis links on a jsp ?  RSS feed

 
Shyam Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what will differentiate different links on the *.jsp page && how to retrive it for further process ?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll have to explain what you are asking for a little more clearly.
 
Shyam Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to show some links on 1st.jsp . onclicking on any of them how can i know which link has been clicked .


I actually want to do data base paging . Upon that result of the clicked link I want to show set of rows on the same jsp (1st.jsp ) .


need help .
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please reserve the use of bold for special emphasis -- not your whole post.

The JSP FAQ contains information on database paging.
 
Shyam Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

hi Bibeault . i know the sql part of paging .

My scenario is -->

i have to show 4 rows on each click on the same 1st.jsp . suppose links are like 1 2 3 4 . How i will be knowing

which link has been clicked.


Once i get no. of the link clicked i can use it in my paging logic.

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A link can contain parameters like this: http://localhost:8080/myApp/myPage.jsp?param1=1¶m2=2
 
Shyam Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


thanks for the enlightening .

how to fetch the value of param1 ? will it be stored in request object .. by donig request.getAttribute("param1");
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A little hint: param1 is a parameter, not an attribute.
 
Shyam Singh
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i think i am close to it.

means request.getParameter("para1") will do .
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!