hello everyone, In my application, I need to get the id of a form button when managing a POST call on a given resource.
this is my form i'm posting to my resource: <form name="login" method="post" action="/iwf-rest-client/login"> Name:<br> <input type="text" name="iwf.user_name" cols="55" rows="10"></textarea><br> Password:<br> <input type="text" name="iwf.user_password" size="55" value=""> <input type="button" name="submitButton" value="Submit" onclick="document.forms['login'].submit()"> </form> and I'm getting it as follows: @Post public Representation sendForm(Representation entity) { Form form = new Form(entity); //get the names of the form fields Set <String> names = form.getNames(); ... } I'm being able to get all the field names but the button one, and I definitely need it. is there any means by which I can get the button name ('submitButton')??? thanks in advance! ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2371431