Arsen Alexanyan
Arsen Alexanyan

Reputation: 3141

Wrong URL syntax?

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:

Attached is the presentation

Upvotes: 1

Views: 183

Answers (1)

Mr. Alien
Mr. Alien

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

Related Questions