Re: problem occured while validating form

2004-08-14 Thread Erik Weber
I'm having a little trouble understanding the question. ji liu wrote: >when validating form,some problems occured. >As MVC Model2 suggest,I use a controller to query >imformations and store them into javabeans.Then the >javabeans is used by the page which contains a form. >when the form submits,

Re: Specifying HTML form names

2004-08-14 Thread Matthew Van Horn
On Sun, 2004-08-15 at 00:19, Jacob Weber wrote: > I have a JSP with two forms, and they both need to go to the same > action. But Struts assumes that the "name" property of the HTML form > (e.g. ) should be the same as the name of the > associated form bean. As a result, I can't use JavaScript

Re: Read only iterate?

2004-08-14 Thread Kishore Senji
Refer: http://struts.apache.org/faqs/indexedprops.html > > > Problematic input > > property="integer_value" indexed="true"/> > > > Try the one below: P

Re: Read only iterate?

2004-08-14 Thread Mike Elliott
On Friday 13 August 2004 09:40, Jim Barrows wrote: > > -Original Message- > > From: Mike Elliott [mailto:[EMAIL PROTECTED] > > Sent: Friday, August 13, 2004 9:33 AM > > To: [EMAIL PROTECTED] > > Subject: Read only iterate? > > > > > > I've been totally defeated in my attempt to alter an htm

Re: Read only iterate?

2004-08-14 Thread Mike Elliott
On Friday 13 August 2004 09:43, Brian Lee wrote: > Lists work, but you have to write your own set(int index) method to set the > correct object from the List. > > BAL I still believe that lists work -- it's not lack of belief that's the problem, it's lack of results. There's some magic involved

Re: Read only iterate?

2004-08-14 Thread Mike Elliott
On Friday 13 August 2004 09:40, Richard Yee wrote: > Mike, > What does the generated HTML look like? The generated HTML is not the problem; the failure to invoke the set method is the problem. However, maybe looking at it would provide some insight into the cause. Anyway, here it is:

Struts with Flex

2004-08-14 Thread Ovidiu EFTIMIE
Hi, Has anyone any experience with Struts and Flex (http://www.macromedia.com/software/flex/ , http://www.macromedia.com/devnet/flex/articles/struts.html) that would like to share ? How about Struts+XML+(XSLT/Flex) ? Regards, Ovidiu

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
IIRC, the form tag used to have an attribute so you can specify the form name, though I never used it because I never needed to. It was deprecated and eventually removed. Hubert --- Jacob Weber <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Hubert Rabago <[EMAIL PROTECTED]> wro

Re: Specifying HTML form names

2004-08-14 Thread Jacob Weber
In article <[EMAIL PROTECTED]>, Hubert Rabago <[EMAIL PROTECTED]> wrote: > There was only one entry for the two similarly named forms. Checking the > fields of the form showed me that only the latest definition of a form with a > given name is recognized. > > So, you should probably add a formb

Re: Specifying HTML form names

2004-08-14 Thread Hubert Rabago
Just sharing a simple test I just did. It looks that you can't have two forms with the same name on one document. I created a page with two forms with the same name, then checked how the browser sees them with a quick javascript: var result = "Forms in this document:\n\n"; for (var i=0; i < docu

Specifying HTML form names

2004-08-14 Thread Jacob Weber
I have a JSP with two forms, and they both need to go to the same action. But Struts assumes that the "name" property of the HTML form (e.g. ) should be the same as the name of the associated form bean. As a result, I can't use JavaScript to refer to one of the forms, since they both have the

Re: validwhen with checkboxes (1.2)

2004-08-14 Thread Bill Siggelkow
Nathan -- try changing the logical to "and" Nathan Maves wrote: can you run a check to see if a checkbox has been selected? This doesn't seem to work for me, where rollable is a checkbox in the same form. I want this field to be required when the rollable checkbox is checked. tes

problem occured while validating form

2004-08-14 Thread ji liu
when validating form,some problems occured. As MVC Model2 suggest,I use a controller to query imformations and store them into javabeans.Then the javabeans is used by the page which contains a form. when the form submits,the form is validated.If some errors occured,struts will return to input page.

Re: How to call multiple submits in a jsp form(in STRUTS other than using javascript)

2004-08-14 Thread Jeffrey Stairs
Hi Manjo, Have a look at the documentation for the LookupDispatchAction. This should do what you want. Regards, Jeff - Original Message - From: "jacob skariah" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, August 14, 2004 8:07 AM Subject: How to call multiple submits in a