Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

malformed url or more

 
Chris Pat
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I am trying to make a simple wizard. Below are the segments of the relevant components. For some reason when executed, the url that is formed is not host:ip/context/step00?level=step01, it is only host:ip/context/step00.do The step00.jsp cant be simpler. What am I doing wrong? tia

="this.form.level.value='step01'"/>

</html:form>
</body>
</html:html>
struts-config.html
...
<action input="/pages/step00.jsp" name="Dispatch00_FB" parameter="level" path="/step00" scope="session" type="demo.actions.process00_A">
<forward name="step01" path="/pages/step01.jsp" />
</action>
...

pprocess00_A
package demo.actions;

import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.ActionForm;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForward;
import demo.forms.Dispatch00_FB;
import org.apache.struts.action.Action;

public class process00_A extends org.apache.struts.actions.DispatchAction {

public ActionForward step00(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

return mapping.findForward("step01");

}



public ActionForward step01(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {

return mapping.findForward("step01");

}
...[/CODE]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic