greyknight
Programmer
Hi
I hope someone can help me
I've wrote a Servlet that forwards to a jsp page in this way:
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
//Make something
getServletContext().getRequestDispatcher("/Page.jsp".forward(request, response);
}
inside the Page .jsp there is an IMG tag:
<IMG srg="image.gif">
if I load directly the Page.jsp with my browser I can see the image but if I invoke the servlet I cannot see the image.
I have checked the HTML source downloaded by the browser and I've seen that it is correct: there is the IMG tag.
Why this occur? Why the browser downloads correctly the html code but doesn't display it?
I hope someone can help me
I've wrote a Servlet that forwards to a jsp page in this way:
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
//Make something
getServletContext().getRequestDispatcher("/Page.jsp".forward(request, response);
}
inside the Page .jsp there is an IMG tag:
<IMG srg="image.gif">
if I load directly the Page.jsp with my browser I can see the image but if I invoke the servlet I cannot see the image.
I have checked the HTML source downloaded by the browser and I've seen that it is correct: there is the IMG tag.
Why this occur? Why the browser downloads correctly the html code but doesn't display it?