• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

malformed url or more

 
Ranch Hand
Posts: 156
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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]
 
And will you succeed? Yes you will indeed! (98 and 3/4 % guaranteed) - Seuss. tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic