link for image and html link to a jsp not working

411Boss

New Member
Here is my login.jsp page:\[code\]<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Login Page</title> </head> <body> <div align="center"> <img src="http://stackoverflow.com/questions/15597355/<%= request.getContextPath() %>/image/asd.jpg"> </div> <div id=loginFormDiv align="center"> <form name="loginform" method="post" action="<%= request.getContextPath() %>/login"> <br><br> <table align="center"><tr><td><h2>Login Authentication</h2></td></tr></table> <table width="300px" align="center" style="border:1px solid #000000;background-color:#efefef;"> <tr><td colspan=2></td></tr> <tr><td colspan=2> </td></tr> <tr> <td><b>Login Name</b></td> <td><input type="text" name="userName" value=""></td> </tr> <tr> <td><b>Password</b></td> <td><input type="password" name="password" value=""></td> </tr> <tr> <td></td> <td><input type="submit" name="Submit" value="http://stackoverflow.com/questions/15597355/Submit"></td> </tr> <tr><td colspan=2> </td></tr> </table> </form> </div> <div id="changePasswordLinkId" align="center"> <a href="http://stackoverflow.com/questions/15597355/ChangePassword.jsp">Change Password</a> </div> </body> </html> \[/code\]Here when I load this page for the first time the image as well as the link to another jsp with div id ="changePasswordLinkId" doesn't work. The image is not shown and clicking the anchor link displays the login page again.however if I login once and use the back button of the browser they work. Also, the console log from google chrome gives a warning :- "Resource interpreted as Image but transferred with MIME type text/html: "htt_p://localhot:8080/Tool/image/asd.jpg>". ChangePassword.jsp:12"Please help me on this. I will be very thankful.Thanks In advance.
 
Back
Top