Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Path problem

 
Brusk Baran
Ranch Hand
Posts: 132
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers.
My problem is that : I have a jsp file(say a.jsp),on which there exist some forms parameters; I send the selected form to a servlet named "EditElementBean" then it creates the associated Bean Object (related with the form parameter element) and redirects to another jsp (b.jsp) ,using RequestDispatcher.
So it should work that way.
a.jsp-->EditElementBean-->b.jsp ----->EditElementBean-->a.jsp
But while on the page b.jsp my page URL looks like

and I cannot send the form to the servlet.
What am I missing here then? I cannot figure it out.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably the web.xml in the web_appln/WEB-INF directory does not correctly map the name EditElementBean to your servlet.
For full documentation of web.xml, download the servlet API from java.sun.com
Bill
 
li ji'an
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi comma geneus.
In tomcat4, when the RequestDispatcher rederect to a URL, the codebase didn't change. maybe, this is a bug.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic