trying to use webwork, and I guess I'm making some newbie mistake, cause I can't get a
similar construct that I see in the formstest.jsp example to work:
here's what I'm doing: (or rather, trying to do...)
<form action="<webwork:url page="billing.action"/>" method="POST">
<webwork:bean name="'webwork.util.Counter'" id="year">
<webwork:param name="'first'" value="2000"/>
<webwork:param name="'last'" value="2020"/>
<ui:combobox label="'Year'" size="6" maxlength="4" name="'birthYear'"
list="@year"/>
</webwork:bean>
<input type="submit" value="Update"/>
</form>
I just changed the action name, but it works ok. now, the value i pick for the counter
gets passed, as i'd expect, with the key 'birthYear' and the value as '2000' or
whatever. but it also gets sent *again*, with the key of simply "":
request params:
Jun 16, 2003 1:27:48 PM webwork.action.ActionContext getParameters
INFO: key="", value=2003
Jun 16, 2003 1:27:48 PM webwork.action.ActionContext getParameters
INFO: key="birthYear", value=2003
and I noticed this way works:
<form action="<webwork:url page="billing.action"/>" method="POST">
<ui:combobox label="'Year'" size="6" maxlength="4" name="'birthYear'" list="@year"/>
<input type="submit" value="Update"/>
</form>
why? :)
- Ian Pojman
-------------------------------------------------------
This SF.NET email is sponsored by: eBay
Great deals on office technology -- on eBay now! Click here:
http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork