Results 1 to 2 of 2
- 02-01-2011, 05:05 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 3
- Rep Power
- 0
how to pass values from jsp to servlet
i used 3 index.html.in that i used 3 links for edit,view,delete operation.based on link clicked,the corresponding button only send to servlet in order to enable the operation.
in index.html i wrote like that
<a href="newuser.html?val=newuser" "> create new user</a><br>
<a href="deleteuser.html?val=deleteuser "> Delete user</a><br>
<a href="edit.html?val=edit "> Edit user</a><br>
in servlet,
String value=request.getParameter("val");
System.out.println("val"+value);
i received val is null.if any one help me .how to pass values in order to do particualr operation(edit,view,delete)
- 02-01-2011, 09:13 AM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,484
- Rep Power
- 16
Similar Threads
-
Pass Values into 2D Array?
By noble in forum New To JavaReplies: 7Last Post: 11-09-2010, 07:30 AM -
Cant pass ByteArray from Servlet to Midlet
By Anahcra in forum CLDC and MIDPReplies: 0Last Post: 10-28-2010, 09:03 AM -
How to pass value from servlet to midlet?
By sharmaj2me in forum CLDC and MIDPReplies: 1Last Post: 12-05-2008, 03:52 PM -
how to pass a List from a servlet to javascript..
By hussainzim in forum Java ServletReplies: 2Last Post: 09-09-2008, 12:17 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks