hey guys

Pardon the slightly lengthy post as i wanted to be
clear in my problem
defnition. I am using Tomcat 3.2.1 on Apache and my
application context path
is /application

I have a login.html which, in its POST method calls a
servlet called
login(alias name). Now this servlet validates the user
and decides where he
has to go based on the user type. then it uses
request.setAttribute() and
modifies the request. then it uses
request.getRequestDispatcher("").It is
supposed to go to the usertypexxx.jsp, but this is
where i get a problem.

if i give the absolute context path like
request.getRequestDispatcher("/application/usertypexxx.jsp")
and
requestdispatcher.forward(req,res)My servlet just wont
take me there. i get
a file not found error.

if i give the relative path like
request.getRequestDispatcher("/usertypexxx.jsp") and
requestdispatcher.forward(req,res). The servlet runs
and i go to the
usertypexxx.jsp but all the html links in the page
have a context path
mapped to /application/servlet/usertypedir/abc.jsp
where as they are
actually links to /application/usertypedir/abc.jsp.

the problem is that /servlet is getting added to the
path.

Now What is this problem , why is this coming and how
can i solve this

thanks in advance


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to