• Post Reply Bookmark Topic Watch Topic
  • New Topic

Page Navigation Problem

 
GNS VE
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everyone,
I have a question on Page Navigation with JSP & BEAN .
I am kind of new to this field and kind of confuse, pls help.
First of all I have few Variable and I send it to my JSP Page and
I get
hello=1&me=2&me=3
I need to make a page navigation,
so I add OFFSET & LIMIT to my SQL query and also I set a hidden offset=1 on the first page.
then "<A HREF="show.jsp?offset=10">NEXT</A><BR>"
Is there any way to send the first "hello=1&me=2&me=3" string information with the NEXT Button?
thanks
[ October 08, 2003: Message edited by: Bear Bibeault ]
 
Anthony Watson
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use request.getQueryString() to get the entire query string from the request. You can also access individual parameters that were passed to your page using request.getParameter("parameter1").
Therefore, you could use the following code
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65530
108
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch GNS VE!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
Thanks!
bear
JSP Forum Bartender
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!