Hello everybody,

I have a problem with configuring an action mapping.

The related Struts-config.xml chunk is:

<action path="/insertAuthor" include="/WEB-INF/pages/insertAuthor.jsp"/>
<!-- attribute="authorDets" input="/insertAuthor.do" -->
<action path="/showInsertedAuthor"
include="/WEB-INF/pages/showInsertedAuthor.jsp" input="/insertAuthor.do"
name="insertAuthorForm" scope="request" validation="false"/>
<action path="/flushAuthor" input="/showInsertedAuthor"
name="insertAuthorForm" scope="request"
type="webinterface.actions.InsertAuthorAction">
    <!-- <forward name="success" path="/insertAuthor"/> -->
</action>

The input form beans are all declared:

<form-bean name="insertAuthorForm"
type="uk.ac.ox.comlab.combio.euheart.webint.forms.InsertAuthorForm"/>

The problem is that when from the URL <projectContext>/insertAuthor I access
to the url <projectContext>/showInsertedAuthor, Tomcat indeed access to the
new URL but I get the same web page (which is returned by the insertAuthor
action).

I though it was something wrong with the validation of the data passed, but
even disabling it with validation="false" I got the same result. Removing
the attribute input raised another exception (attribute "attribute" not
define for the action /show...)

Any hints or suggestions?

Thank you!

Dan

Reply via email to