need more parameter in a page
I think that I post here is more suitable
Hello
In the jsp page that display list of books, I have:
<td>
<form action="<c:url value="book.html"/>">
<input type="hidden" name="id" value="<cut value="${book.bookId}"/>" /><input type="submit" name="edit" value="Edit" /></form>
</td>
When I click edit button for a book (with Id =1), I have this in URL:
http://localhost:8080/book/book.html?id=1&edit=Edit
This page will show the details of the book. As the book may have one or more comments and I need to update, delete any of these comments. To edit a comment with Id =2, I need to have one more parameter for it, example it is commentId = 2.
I tried:
<td>
<c:url var="editComment" value="book.html"> <!-- I need to display the edit comment in the same book detail page -->
<caram name="commentId" value="2"/>
</c:url>
<a href="<cut value="${editComment}"/>">edit Comment</a>
</td>
My URL now is http://localhost:8080/book/book.html?commentId=2
But I NEED to have this in URL:
http://localhost:8080/book/book.html?id=1&edit=Edit&commentId=2
Could you please tell me how to do this. I use a simpleFormController as all of actions happend on only one form.
Many thanks
shoa

