Solved

including JSp

Posted on 2003-11-07
7
296 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
Comment Utility
you could try:

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

Expert Comment

by:evedder
Comment Utility
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
Comment Utility
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
Comment Utility
have u done touch * on your server on the working directory???
0
 
LVL 2

Expert Comment

by:anthony_castillon
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
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:

762 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

6 Experts available now in Live!

Get 1:1 Help Now