Solved

including JSp

Posted on 2003-11-07
7
301 Views
Last Modified: 2013-11-18
I have a jsp in which i have a include statement like
<%@include file="mypage.jsp" %>, and my file is compiled and ready to view.

when i change mypage.jsp i dont see the changed in the main JSP page

can somebody tell me is there any other way?

Thanks
0
Comment
Question by:soft_techy
[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
7 Comments
 
LVL 18

Accepted Solution

by:
bobbit31 earned 50 total points
ID: 9704002
you could try:

<jsp:include page="mypage.jsp" flush="true" />
0
 
LVL 3

Expert Comment

by:evedder
ID: 9704413
I think it could be the cache of your browser, make sure you are really realoading yur main page, that happens to me sometimes

salu2!
0
 
LVL 18

Expert Comment

by:bobbit31
ID: 9704543
yeah, me too... also, if the jsp resides on a remote server, you might want to check to make sure the modified timestamp on it is correct. (ie. time on local machine != time on server)

this happens to me and i have to go into server, open the jsp in a editor and save it from the server. (this doesn't happen to me very often though)

as a test... delete the jsp on the server completely and copy the new jsp over.
0
 

Expert Comment

by:eg4
ID: 9769640
have u done touch * on your server on the working directory???
0
 
LVL 2

Expert Comment

by:anthony_castillon
ID: 9814179
Use <jsp:include > instead of <%@ include>.  The former reevaluates your page everytime it's loaded.  The second one is evaluated once, during page translation; that's why even if you change the included page, the change is not reflected even when you refresh the page.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

When you work with shopping cart / ecommerce relates web sites, you need to pass the certain form post details to the payment gateway process page with required details for the products items you give to order. Also you may need to track the ordered…
Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

730 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