In regards to your first problem.
I believe the button that was pressed would be in the
request header so you can use getParameter() (passing
th name of the button) from the request object in the
Action class to determine which button was pressed.
If the call to getParameter() does not return null you
know the user pressed the button.
scott.
--- JOEL VOGT
<[EMAIL PROTECTED]> wrote:
> Hi all,
> Two problems.
>
> 1)
> I have a form on a page which I need to submit using
> three buttons. The
> buttons are previous, next and update. All three
> buttons should submit
> the form but then redirect to three different
> screens. How do I do this
> in struts?
>
> 2)
> Running struts in jboss with embedded tomcat I
> continually get the
> following error message:
>
> [EmbeddedTomcat] Warning: validation was turned on
> but an
> org.xml.sax.ErrorHandler was not
> [EmbeddedTomcat] set, which is probably not what is
> desired. Parser
> will use a default
> [EmbeddedTomcat] ErrorHandler to print the first 10
> errors. Please call
> [EmbeddedTomcat] the 'setErrorHandler' method to fix
> this.
> [EmbeddedTomcat] Error: URI=null Line=53: Element
> "web-app" does not
> allow "welcome-file-list" here.
>
> This is fair enough except the app works fine. Just
> want to get rid of
> this message. How?
>
> Thanks, Joel.
>
=====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Scott
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/