struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joey Watson" <joey.informat...@gmail.com>
Subject Re: How to use <Html:Select>
Date Wed, 03 May 2006 15:55:15 GMT
u meant using <bean:write> tag or what? I tried to use the
<bean:write>, but it doesn't work.
I think the reason is. struts is not allow use java or tag for the
paramater's value. like

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<html:select property="accSubj_nc"
      name="applicationItem" indexed="true"
      onchange="doSubmitWithIndex(this.form,
                         '<%=ApplicationAction.ACCSUBJ_CHANGE%>',
                         '<%=index%>')" >
</html:select>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

the result html is

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<select name="applicationItem[0].accSubj_nc"
        onchange="doSubmitWithIndex(this.form,
                                  '<%=ApplicationAction.ACCSUBJ_CHANGE%>',
                                  '<%=index%>')">
<option value=""></option>
</select>
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
struts does not translate the '<%=ApplicationAction.ACCSUBJ_CHANGE%>'
to its value 'accsubj_change'.

even I use the <bean:write>. it does be translated.





On 5/3/06, Shshank Jain <jain.shshank@gmail.com> wrote:
> try using bean tags to write the specific values.
>
> On 5/2/06, Joey Watson <joey.information@gmail.com> wrote:
> >
> > Hi All.
> >
> > I got a problem when I was using <Html:Select>. I used to use <Select>
> > before. like
> > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> > <select property="accSubj_nc"
> >       name="applicationItem" indexed="true"
> >       onchange="doSubmitWithIndex(this.form,
> >                          '<%=ApplicationAction.ACCSUBJ_CHANGE%>',
> >                          '<%=index%>')" >
> > </select>
> > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
> >
> > those codes can work well. but now I want to use <Html:Select>. but
> > the code  '<%=ApplicationAction.ACCSUBJ_CHANGE%>', and '<%=index%>'
> > value can not be get.
> > the value  passd to the doSubmitWithIndex function is
> > <%=ApplicationAction.ACCSUBJ_CHANGE%>  and <%=index%> , not
> > accsubj_change and 0,1,2.....
> >
> > Thanks.
> >
> > Joey
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message