This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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: 13024
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
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:
subject: Path problem
It's not a secret anymore!