just when i thought i would never find a solution and just after this
email i found it:

here it is:;

in my action:

    public Map<String, String> getMarks() {
        return marks;
    }

    public void setMarks(Map<String, String> marks) {
        this.marks = marks;
    }

in my jsp:
<input type="text" name="marks['candidateId1']" value="4" size="3"/>
(will have to turn in into struts tag..)

have fun,

tibi

tibi wrote:
> hi,
>
> sorry for the off list question. but i guess someone here will have done
> this.
> i want to make a input field mapped to a map. using struts2 (appfuse
> 2.0m5/spring2/hibernate3)
> something like this:
>
> <s:form id="form" method="post">
> ...
>     <s:textfield key="test(key)" />
> ...
> </s:form>
>
> ------------------------------------action----------------------
> public String getTest(String key) {
>     return map.get(key);
> }
>
> public void setTest(String key,String value) {
>     map.add(key,value);
> }
>
> thanks
>
> tibi
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>   

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to