wood burning stoves 2.0
The moose likes Servlets and the fly likes Path problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Path problem" Watch "Path problem" New topic

Path problem

Brusk Baran
Ranch Hand

Joined: Nov 15, 2001
Posts: 132
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

Joined: Mar 22, 2000
Posts: 13036
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
li ji'an

Joined: May 25, 2003
Posts: 1
Hi comma geneus.
In tomcat4, when the RequestDispatcher rederect to a URL, the codebase didn't change. maybe, this is a bug.

My english is poor!
I agree. Here's the link: http://aspose.com/file-tools
subject: Path problem
It's not a secret anymore!