Solved

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

Posted on 2004-09-15
5
198 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 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 52

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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
Multi-threading long-running processes can have a significant increase in overall performance and drastically decrease over time it takes for a process to complete. Unfortunately, not all applications support native multi-threading, some by design a…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

728 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