Try making the entire onchange one scriptlet like this: <html:select property="accSubj_nc" name="applicationItem" indexed="true" onchange='<%= "doSubmitWithIndex(this.form," + ApplicationAction.ACCSUBJ_CHANGE + ", " + index + ")" %>' > </html:select>
Kjersti On 03/05/06, Joey Watson <[EMAIL PROTECTED]> wrote:
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 <[EMAIL PROTECTED]> wrote: > try using bean tags to write the specific values. > > On 5/2/06, Joey Watson <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]