?
Solved

When I change a JSP that is an include, the main page does not change.

Posted on 2004-09-15
5
Medium Priority
?
200 Views
Last Modified: 2010-04-01
I have a JSP main page that has three JSP includes.  
When I change code of one of the includes, and test the change by bringing up the main page, the changes do not show up.

But if I make a change to the main page, then those changes and the include changes show up.
How can I correct this, to where the changes for the includes show up when accessing the main page?
0
Comment
Question by:g118481
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 1

Accepted Solution

by:
oterrada earned 200 total points
ID: 12070679
There 2 ways to insert a jsp file:

This one the compiler recompiles each time that you use the page, It's better in develop time.
<%@ include file="relativeFragment.jsp" %>

An the other it compiles the pages together, and this is your problem. It's better in real time.
<jsp:include page="relativeFragment.jsp"  flush="true" />

Uri

At this moment I'm not sure of this, but if you use one of these try the other.
0
 
LVL 92

Expert Comment

by:objects
ID: 12071228
you cannot correct it afaik. may depend on your container though.
0
 
LVL 11

Expert Comment

by:raj3060
ID: 12071229
If you make changes in includes, you need to reload the main page, i.e. refresh the page, changes should be there. Sometimes it does not show for some wiered reason then I rebuild the project and it works.
--Raj
0
 
LVL 53

Expert Comment

by:Ryan Chong
ID: 12071319
try delete the compiled servlet of your main page, then try run your main page again..
0
 
LVL 1

Author Comment

by:g118481
ID: 12071853
I am using <%@ include file="relativeFragment.jsp" %>.
I changed to <jsp:include page="relativeFragment.jsp"  flush="true" /> and now it works perfect.

Cheers

0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In this modest contribution, I want to share with the IT community (especially system administrators, IT Support Engineers and IT Help Desks) about Windows crashes/hangs and how to deal with these particular problems.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month10 days, 14 hours left to enroll

770 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