wood burning stoves*
The moose likes JSP and the fly likes using href with jsp scriplets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "using href with jsp scriplets" Watch "using href with jsp scriplets" New topic
Author

using href with jsp scriplets

sam barker
Ranch Hand

Joined: Apr 26, 2008
Posts: 37
Hi,
I am trying to pass 3 values as request parameters

<td><a href="ControllerServelet?operation=CHECK_LIST&propertyoffset=<%= i %>&searchindex=<%= startIndex %>">whats this?</a> </td

But when i try to access it in the other jsp
i am getting null value..
eg.....
String index=(String)request.getAttribute("searchindex");
if(index==null)
System.out.println("index is null");


Could anyone tell me the correct way of doing this.
Cheers
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
try


Amit Tank
Linked In
sam barker
Ranch Hand

Joined: Apr 26, 2008
Posts: 37
thanks for your help
Amit M Tank
Ranch Hand

Joined: Mar 28, 2004
Posts: 257
No Problemo
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using href with jsp scriplets