Results 1 to 4 of 4
  1. #1
    Jack is offline Senior Member
    Join Date
    Jun 2007
    Posts
    130
    Rep Power
    0

    Default 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


    Java Code:
    <a href="UserAction.do?action=Deleteuser&id=id" class="Style1">Delete User</a><br />
    obviously it doesn't work, what is the problem?

  2. #2
    bbq
    bbq is offline Senior Member
    Join Date
    Jun 2007
    Posts
    132
    Rep Power
    0

    Default

    You can use the "links" to execute actions

    Java Code:
    <html:link action="changepermission.do?method=change" paramId="id"
     paramName="table" paramProperty="id2">

  3. #3
    Ed
    Ed is offline Senior Member
    Join Date
    Jun 2007
    Posts
    110
    Rep Power
    0

    Default

    You have to do this:
    Java Code:
    <href="/userAction.do?action=Deleteuser&id=1">
    the code is right, please send us the error

  4. #4
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default

    hello. Thanks. I was looking the same, and I got it.
    <c:forEach var="result" items="${requestlist}">
    <tr>
    <td><c:out value="${result.id}"/></td>
    <td><li><html:link action="/approvedetail.do?" paramId="requesttag" paramName="result" paramProperty="requesttag"><c:out value="${result.requesttag}"/></html:link></li></td>
    </td></tr></c:forEach>

Similar Threads

  1. action class
    By jayagowri in forum Web Frameworks
    Replies: 1
    Last Post: 05-07-2008, 04:23 PM
  2. Replies: 0
    Last Post: 01-27-2008, 09:17 PM
  3. Run RCP action from outside of the Eclipse RCP
    By leonbandas in forum Eclipse
    Replies: 1
    Last Post: 01-07-2008, 08:15 AM
  4. jsp:param action
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-24-2007, 11:03 AM
  5. problems when I try to send parameters
    By christina in forum Java Applets
    Replies: 1
    Last Post: 08-03-2007, 07:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •