mr_object
asked on
JSP Page not refreshing
Hello Experts,
I have created a jsp page...which is not refreshing after any change i have done....it is still showing the initial output on every request.
I am using JBoss server and in my project WEB-INF/lib only servlet-api.jar is there....any other libraries are required.
I attached my code.
I tried following code but it didnt work..!!
<HEAD>
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
</HEAD>
and
<%
response.setHeader("Cache- Control"," no-cache") ;
response.setHeader("Pragma ","no-cach e");
response.setDateHeader ("Expires", 0);
%>
Thanks..!!
I have created a jsp page...which is not refreshing after any change i have done....it is still showing the initial output on every request.
I am using JBoss server and in my project WEB-INF/lib only servlet-api.jar is there....any other libraries are required.
I attached my code.
I tried following code but it didnt work..!!
<HEAD>
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="cache-control"
</HEAD>
and
<%
response.setHeader("Cache-
response.setHeader("Pragma
response.setDateHeader ("Expires", 0);
%>
Thanks..!!
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<HEAD>
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="cache-control" CONTENT="no-cache">
</HEAD>
<body style="background-color : yellow;">
<form action ="regscript.jsp" method ="get">
<table style="border: 5px ridge; align:center">
<tr>
<th>FirstName</th>
<td><input type="text" name="FirstName" value="" size="25"></td>
</tr>
<tr>
<th>LastName</th>
<td><input type="text" name="LastName" value="" size="25"></td>
</tr>
<tr>
<th>Password</th>
<td><input type="password" name="Password" value="" size="25"></td>
</tr>
<tr>
<th>Mobile No</th>
<td><input type="text" name="MobileNo" value="" size="25"></td>
</tr>
<tr>
<th>Email ID</th>
<td><input type="text" name="Email" value="" size="25"></td>
</tr>
</table>
<table>
<tr>
<td><input type="submit" value="register"></td>
<td><input type="reset" value="cancel"></td>
</tr>
</table>
</form>
</body>
</html>
ASKER
hi karanw,
i have tried in 3 browsers...and i have restarted the Jboss many times..!!
i have tried in 3 browsers...and i have restarted the Jboss many times..!!
Try
<meta http-equiv="expires" content="0">
Also clean the temporary files.
<meta http-equiv="expires" content="0">
Also clean the temporary files.
ASKER
<meta http-equiv="expires" content="0">
this one also i tried ...it didnt work....what are the temp files i have to clean..???
this one also i tried ...it didnt work....what are the temp files i have to clean..???
IE browser temp file.
Are you getting any error while deploying to server?
Are you getting any error while deploying to server?
ASKER
i am not getting any errors while deploying..!!
Delete the JSP and hit the URL..check what happens..
Add again deleted JSP and hit the URL.
Add again deleted JSP and hit the URL.
ASKER
i have deleted the jsp...and i made a request to the jsp....page not found response i received.
when i added the jsp back.....it is still showing the intial output.!!
any libraries i need add in WEB-INF/lib apart from servlet-api.jar
when i added the jsp back.....it is still showing the intial output.!!
any libraries i need add in WEB-INF/lib apart from servlet-api.jar
If there is any error , then we need to check for lib.
Try with creating another jsp, is that also giving same output.
Try with creating another jsp, is that also giving same output.
ASKER
i tried with other jsp's also.....same result, but if i use linux system jsp is updating......in windows only update is not coming.....!!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
got solution on my own
DO you restart the application after change done?