servlet > RequestDispatcher.forward

(blah.jsp)

form1.action= "../servlet/my.blahServlet?

>>

(blahServlet)

RequestDispatcher rd = getServletContext().getRequestDispatcher (/jsp/blah.jsp");

rd.forward(request, response);

>>

(blah.jsp)

problem? no css style, no image, if recall servlet it shows servlet path error (404)

My question is in what situation that the jsp's css,image and action path

will be incorrect. thanks.

[465 byte] By [EricLoia] at [2007-11-27 4:57:54]
# 1
you can post the url showin ? i think is "jsp/blah" without the first black slash thanks
javaskilleda at 2007-7-12 10:13:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

well, i m sure the path need to start with "/" character, because the

servlet successfully forward the jsp page.( no exception caught)

After that, the page url shows http://~/webapps/servlet/my.blahServlet?~

which is the effect of RequestDispatcher.forward.

all the content is correct

WHY the path is incorrect>?

i cant call that servlet twice?

EricLoia at 2007-7-12 10:13:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...