Question is:
I have a page call "index.jsp", it contain an image get from a servlet
<img src="servlet/loadImage?file=logo.jpg" id="cloth" onload="btn.disabled=false;"/><br>
When user click submit button, it link to another servlet
<form action="servlet/login" method="post">
if there has any error, the login servlet send back to index.jsp using RequestDispatcher
RequestDispatcher dispatcher=request.getRequestDispatcher("/index.jsp?action=register");
dispatcher.forward(request, response);
the problem is when login servlet redirects back to index.jsp, the image path will become
http://localhost:8084/MyOutfit/servlet/servlet/loadImage?file=logo.jpg
How to solve this problem? Thanks
and sorry about my poor English....

New Topic/Question
Reply



MultiQuote



|