Form submit RESTFul Get

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Form submit RESTFul Get

I have a form which captures a productID from the User
productID needs to be built in to the form action

ie I'm invoking a RESTFul Get of the form

<form action="#" th:action="${#strings.concat(@{/products/}, *{productID})}" method="get">
    <input type="text" th:field="*{productID}" />
    <input type="submit" value="Submit"/>

Have tried various string 'assembly' styles - but can't seem to find one that Spring/Thymeleaf is happy with

Many thanks