troubleshooting Question

<action forward struts

Avatar of komlaaa
komlaaa asked on
JSP
12 Comments1 Solution800 ViewsLast Modified:
using struts 1.1-- The request http://localhost:8085/wptStrutsHib/createCustomer.do
is taking to a blank page instead of taking to "/views/orderCreated.jsp"  as specific in struts action below:

            
                  <form-bean
                        name="createCustomerForm"
                        type="org.apache.struts.action.DynaActionForm">
                        <form-property name="firstName" type="java.lang.String"></form-property>
                        <form-property name="lastName" type="java.lang.String"></form-property>
                        <form-property name="email" type="java.lang.String"></form-property>
                  </form-bean>

 <action
      path="/orderCreated"
      name="orderCreatedForm"
      input="/form/createOrder.jsp"
      scope="request"    
      type="actions.OrderCreatedAction">
      <forward name="orderCreated" path="/views/orderCreated.jsp" />
    </action>


============ The JSP page ==================
      <body>
            <html:form action="/createCustomer">
                  Email : <html:text property="email"/><html:errors property="email"/><br/>
                  FirstName : <html:text property="firstName"/><html:errors property="firstName"/><br/>
                  LastName : <html:text property="lastName"/><html:errors property="lastName"/><br/>
                  <html:submit/><html:cancel/>
            </html:form>
      </body>
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros