I have this application that needs to be implemented using struts.
The flow is like this:

page1.jsp -> servlet -> javabeans(to access database) -> page2.jsp
page2.jsp -> servlet -> javabeans -> page3.jsp

and so on...

because I use servlets and javabeans, I specified action mappings for my links. 
I used *****.do to perform the action.
I also used form names for <html:form>s on some of my pages.

My problem is, I only use ONE servlet and ONE javabean only to do all those things.  
when I am in page1.jsp going to page2.jsp, it works fine. But when I am in page2.jsp 
going to page3.jsp it doesnt work anymore.

I have specified different action mappings for each process already but they use only 
ONE servlet and ONE javabean.

  <form-beans>

    <form-bean name="FormBean"
                    type="com.myServlet"/>

  </form-beans>


  <action-mappings>


    <action path="/dothis"
               type="com.myServlet"
               name="com"
              scope="session"
           validate="false">
      <forward name="page2" path="/page2.jsp"/>
    </action>
        
    <action path="/forms"
               type="com.myServlet"
               name="FormBean"
              scope="request"
                        input="/page2.jsp"  
                   validate="false">
      <forward name="page3" path="/page3.jsp"/>
    </action>   


I hope you can help me out on this one. 
Thanks in advance.


Boney Sze


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

Reply via email to