i just saw a example where exactly this is the case:
under confluence, when you try to set a user password new. the from with the two password fields point to: dosetuserpassword.action?username=admin
plus it has the two password parameters from the post request..
how is this done? is this normal/best practice?
Florian,
I'm not sure I completely understand your question, but hopefully walking through how the setuserpassword.vm page gets rendered will help:
1. the user clicks on the set password link which calls the link
/admin/uses/setuserpassword.action?username=matt
2. setUsername("matt") is called on our action 3. the execute() method of the action is called 4. velocity renders the result 5. in the velocity template, setuserpassword.vm, getUsername() is called to render
dosetuserpassword.action?username=$username
into
dosetuserpassword.action?username=matt
Also, with this specific page, although confluence has 2 password fields, they are in fact two different parameters. The name of first field is newPassword and the name of the second field is newPasswordConfirmation.
M
------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork