wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Error with jsp and JavaBeans
trouble with remove item fro shopping cart
How to check if textboxes are null
Tomcat and Mysql Configuration
How to check multibox value is null?