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

SMaric
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
      /products/productID


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


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


Many thanks