Reputation: 3141
After combining some jsp url with bean parameter inside the link href attribute I am getting wrong representation. What can be wrong here?
Here is the code:
<form method="post" action="<c:url value="/rest/categories/add/category/to/${categoriesBean.currentCategoryKey}"/>">
<table>
<tr>
<td>Parent :</td>
<td id="parentKey"></td>
</tr>
<tr>
<td>Name :</td>
<td><input id="categoryName" type="text"/></td>
</tr>
</table>
</form>
Attached is the presentation:
Upvotes: 1
Views: 183
Reputation: 157434
Do it like this...not aware of jsp
but it's the only quotes issue on line 1
<form method="post" action='<c:url value="/rest/categories/add/category/to/${categoriesBean.currentCategoryKey}"/>'>
Upvotes: 2