Solved

including JSp

Posted on 2003-11-07
7
298 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
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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Preface In the first article: A Better Website Login System (http://www.experts-exchange.com/A_2902.html) I introduced the EE Collaborative Login System and its intended purpose. In this article I will discuss some of the design consideratio…
Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

813 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

9 Experts available now in Live!

Get 1:1 Help Now