Hello the list!

I have an action-mapping with a forward action that recall the same action
mapping in order to display other informations.
My problem is that my form is submitted and not cleared in my
mapping.forward("editNextEmployee")!!!

How to clear my form before to call the mapping.forward?
Thanks


Example of my struts-config.xml:

<action path="/employeeDetail"
        type="org.mycompany.EmployeeAction"
        name="employeeForm"
        validate="false"
        parameter="reqCode"
        scope="request">
    <forward name="continue" path="/DnaSalarieDetail.jsp"/>
    <forward name="back" path="/employeeList.do?reqCode=list"/>
    <forward name="editNextEmployee"
path="/employeeDetail.do?reqCode=edit"/>
</action>



----- Original Message ----- 
From: "zw" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Thursday, March 17, 2005 7:33 AM
Subject: Multiple Module Config with HTML Form


> Hi,
>
> I faced a problem when I use the multiple module
> method with HTML
> Frame.
> Could someone facing the same problem help....
>
> I have 2 struts-config.xml files - one is main, the
> other is in the
> module /web/menu ...
>
> the one in /web/menu module looks like :
>
> <action-mappings
> type="org.apache.struts.action.ActionMapping">
>             <action path="/MyAction"
> type="com.xxxx.actions.MyAction"
>              name="MenuForm" scope="request"
> validate="false">
>                   <forward name="success"
> module="/web/menu"
> path="/mainframe.jsp" />
>              </action>
>     </action-mappings>
>
> I am trying to display a screen with 2 frames - the
> menu page (jsp page
> with Struts Tags) and the content page (dummy page
> that contains just
> HTML)
>
> I have the line <html:form  action="MyAction.action" >
> in the menu
> page.
>
>
> I keep having the error - Cannot retrieve mapping for
> action ... as
> shown below...
>
> I have tried displaying the menu page without the
> frame, my menu is
> generated without error.
>
>
> 2005-03-17 12:16:26 StandardWrapperValve[jsp]:
> Servlet.service() for
> servlet jsp threw exception
> javax.servlet.jsp.JspException: Cannot retrieve
> mapping for action
> /MyAction
>  at
> org.apache.struts.taglib.html.FormTag.lookup(FormTag.java:723)
>  at
> org.apache.struts.taglib.html.FormTag.doStartTag(FormTag.java:419)
>  at
> org.apache.jsp.web.menu.menu_jsp._jspService(menu_jsp.java:114)
>  at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
98)
>  at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
>  at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
>  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
>  at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
>  at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
>  at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
>  at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
>  at
>
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
>  at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>  at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
>  at
> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:793)
>  at
>
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:702)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:571)
>  at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:644)
>  at java.lang.Thread.run(Thread.java:534)
>
>
>
> TIA.
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to