This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes malformed url or more Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "malformed url or more" Watch "malformed url or more" New topic
Author

malformed url or more

Chris Pat
Ranch Hand

Joined: Aug 27, 2005
Posts: 156
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]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: malformed url or more
 
Similar Threads
Help Me
Servlet Action is not available(Very Urgent)
form bean doesn't come into picture
problem with LookupDispatchAction
struts forward link?