Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-24-2007, 02:03 AM
Senior Member
 
Join Date: Jun 2007
Posts: 130
Jack is on a distinguished road
send parameters from jsp to action
I want to send the parameters from a jsp to an action, I did it through the "submit" but now I want to do it through a link, but I don't know how can I do that

For example to do it, I think that is something like that


Code:
<a href="UserAction.do?action=Deleteuser&id=id" class="Style1">Delete User</a><br />
obviously it doesn't work, what is the problem?
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-02-2007, 03:07 AM
bbq bbq is offline
Senior Member
 
Join Date: Jun 2007
Posts: 134
bbq is on a distinguished road
You can use the "links" to execute actions

Code:
<html:link action="changepermission.do?method=change" paramId="id" paramName="table" paramProperty="id2">
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 07-02-2007, 03:13 AM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
You have to do this:
Code:
<href="/userAction.do?action=Deleteuser&id=1">
the code is right, please send us the error
Bookmark Post in Technorati
Reply With Quote
  #4 (permalink)  
Old 01-07-2008, 12:52 PM
Member
 
Join Date: Jan 2008
Posts: 1
sreekumarkartha is on a distinguished road
hello. Thanks. I was looking the same, and I got it.
<c:forEach var="result" items="${requestlist}">
<tr>
<td><cut value="${result.id}"/></td>
<td><li><html:link action="/approvedetail.do?" paramId="requesttag" paramName="result" paramProperty="requesttag"><cut value="${result.requesttag}"/></html:link></li></td>
</td></tr></c:forEach>
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
action class jayagowri Web Frameworks 1 05-07-2008 04:23 PM
Using bean to send parameters from one Servlet to another Java Tip Java Tips 0 01-27-2008 09:17 PM
Run RCP action from outside of the Eclipse RCP leonbandas Eclipse 1 01-07-2008 08:15 AM
jsp:param action Java Tip Java Tips 0 12-24-2007 11:03 AM
problems when I try to send parameters christina Java Applets 1 08-03-2007 07:41 PM


All times are GMT +3. The time now is 01:47 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org