2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
Hello. If I have two html:form's on a JSP page, that submit to two different actions, I have problems where those actions have different form beans. Either form works individually, but when put together I get an error when the page is displayed. The only way around this I have found is to

RE: 2 forms on a single JSP

2002-06-07 Thread Jerome Jacobsen
: Friday, June 07, 2002 8:25 AM To: [EMAIL PROTECTED] Cc: Tim Sawyer Subject: 2 forms on a single JSP Hello. If I have two html:form's on a JSP page, that submit to two different actions, I have problems where those actions have different form beans. Either form works individually, but when put

2 forms on a single JSP

2002-06-07 Thread mtstruts
Hi Tim, What's the error that you're getting? In the application I'm working on we have 2 forms with 2 different form beans and 2 different actions on the same JSP, with no problem. Tim Sawyer [EMAIL PROTECTED] wrote: Hello. If I have two html:form's on a JSP page, that submit to two

RE: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
, 2002 8:25 AM To: [EMAIL PROTECTED] Cc: Tim Sawyer Subject: 2 forms on a single JSP Hello. If I have two html:form's on a JSP page, that submit to two different actions, I have problems where those actions have different form beans. Either form works individually, but when put together

Re: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
To be honest, I can't remember. It was a while ago now, and I used the workaround. Now I'm on a more complex page and it would be neater to have two forms, so I was thinking before leaping in. The error was something like a Struts tag looking for a bean and not being able to find it. Which

Re: 2 forms on a single JSP

2002-06-07 Thread mtstruts
I guess if the app couldn't find the form bean I would look at my struts-config.xml first to be sure that I had set up the action right. You might need to put the bean scope at the session level (not always desirable, I know). Tim Sawyer [EMAIL PROTECTED] wrote: To be honest, I can't

Re: 2 forms on a single JSP

2002-06-07 Thread Tim Sawyer
I actually cut out the forms individually, and tested the page with just one form on (each form in turn). They both worked fine alone, just not at the same time! I've worked around again this time. Tim. [EMAIL PROTECTED] wrote : I guess if the app couldn't find the form bean I would look