Solved

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

Posted on 2004-09-15
5
193 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
5 Comments
 
LVL 1

Accepted Solution

by:
oterrada earned 50 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 49

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
object methods vs static methods 2 93
spring AOP 6 79
sortaSum challenge java 17 171
How to return JSON response to ajax call in strut2 action class with SUCCESS result 2 139
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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

911 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