Solved

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

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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
what is stuck threads? 3 96
issue with pdf generation 2 78
build fail in maven project 11 172
Using Tomcat as raspberry pi java app server 13 106
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
Moving applications to the cloud or switching services to cloud-based ones, is a stressful job.  Here's how you can make it easier.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

12 Experts available now in Live!

Get 1:1 Help Now