Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
JavaScript can change the action URL on the fly. For example: http://www.willmaster.com/possibilities/archives/wmp20030527001.shtml However, I'm not sure how compatible this type of thing will be with the Struts form tag. I've never tried it. I'm surprised others aren't speaking up because the "m

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
Hi,Erik, I think that helps. I have another question. Besides the "action" attribute in html:form, is anywhere else we can specify another "action" corresponding the submission of javascript? Thanks. Tong Erik Weber <[EMAIL PROTECTED]> wrote: There may be other ways or better ways, but one thing

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread Erik Weber
There may be other ways or better ways, but one thing you could do is vary the action URL. You could have the same action class serving slightly different action mappings, some with validation set to true and some with validation set to false. I did what you are trying to do in a non-Struts Ser

Re: Help needed on question regarding html:select and html:options... A problem

2004-11-10 Thread t t
The problem is, when the form is submitted, it will be validated according to the validator. then error will occur since the user didn't intend to submit and he/she didn't fill other required fields. And in my "acion" program, I don't know how to tell whether it was submitted by "javascript" or