Solved

including JSp

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

688 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