Solved

JSP Page not refreshing

Posted on 2010-11-18
12
595 Views
Last Modified: 2012-05-10
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-cache");
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>

Open in new window

0
Comment
Question by:mr_object
  • 7
  • 5
12 Comments
 
LVL 11

Expert Comment

by:Manish
ID: 34170525
Have you tried in another browser?
DO you restart the application after change done?
0
 

Author Comment

by:mr_object
ID: 34170538
hi karanw,

i have tried in 3 browsers...and i have restarted the Jboss many times..!!
0
 
LVL 11

Expert Comment

by:Manish
ID: 34170547
Try
<meta http-equiv="expires" content="0">
Also clean the temporary files.
0
 

Author Comment

by:mr_object
ID: 34170550
<meta http-equiv="expires" content="0">

this one also i tried ...it didnt work....what are the temp files i have to clean..???
0
 
LVL 11

Expert Comment

by:Manish
ID: 34170592
IE browser temp file.

Are you getting any error while deploying to server?
0
 

Author Comment

by:mr_object
ID: 34170682
i am not getting any errors while deploying..!!
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 11

Expert Comment

by:Manish
ID: 34170755
Delete the JSP and hit the URL..check what happens..
Add again deleted JSP and hit the URL.
0
 

Author Comment

by:mr_object
ID: 34170806
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
0
 
LVL 11

Expert Comment

by:Manish
ID: 34171746
If there is any error , then we need to check for lib.
Try with creating another jsp, is that also giving same output.

0
 

Author Comment

by:mr_object
ID: 34171808
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.....!!

0
 

Accepted Solution

by:
mr_object earned 0 total points
ID: 34185476
Now I got the updated out put..... I changed the eclipse IDE.....previously I used eclipse which has no web project option ....which has static web project and dynamic web project option ....in that I used dynamic web project.....that didnt give the proper results.....so I changed the eclipse.....now it is working perfectly.....now also I dont know the exact problem with previous eclipse....I am suspecting lack of some libraries..!!


Thanks karanw for your help...!!
0
 

Author Closing Comment

by:mr_object
ID: 34849827
got solution on my own
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Do you want to insert HTML5 video into your site? This is the tutorial how to do so. What are the main advantages of HTML5 video? 1) Have good compression, good image quality, and low decode processor use. 2) It is royalty-free 3) It is easi…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now