g118481
asked on
When I change a JSP that is an include, the main page does not change.
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you cannot correct it afaik. may depend on your container though.
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
--Raj
try delete the compiled servlet of your main page, then try run your main page again..
ASKER
I am using <%@ include file="relativeFragment.jsp " %>.
I changed to <jsp:include page="relativeFragment.jsp " flush="true" /> and now it works perfect.
Cheers
I changed to <jsp:include page="relativeFragment.jsp
Cheers