Java Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesJava Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 23rd, 2002, 06:23 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Smile Include file not changing

Hi

This is a simple problem that crops up every so often and i'm never sure how to rectify it.

I have a jsp page (page1) with a jsp include file (page2). When I change the include file and save it I expect to see the changes reflected in page1 when I reload it, however this doesn't always happen.

I stop and start tomcat, delete my work folder, reboot, stamp my feet and sometimes it cures it but not today. What am I doing wrong?

Reply With Quote
  #2  
Old October 23rd, 2002, 09:58 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thats great, thanks. Will it have any effect on the speed of the app?

Reply With Quote
  #3  
Old October 23rd, 2002, 10:15 AM
delboy_trotter delboy_trotter is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: United States of Europe (USE)
Posts: 4 delboy_trotter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry about that, I left my computer unattended for a second and someone thought it would be funny to delete my reply

You will lose a little speed because you are compiling at runtime, but I don't think that it will be significant.

Also, have tried compiling the individual include files before trying to view through the main jsp file??

Reply With Quote
  #4  
Old October 23rd, 2002, 10:21 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
how would I compile them? I only compile my class files, I save my jsp files, am I missing something...

Reply With Quote
  #5  
Old October 23rd, 2002, 11:29 AM
delboy_trotter delboy_trotter is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: United States of Europe (USE)
Posts: 4 delboy_trotter User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Sorry I should of been clearer. JSP files are compiled once, the first time you view the page. So what I was trying to say is, try viewing the individual jsp pages you have changed, before viewing them within the main page.

Reply With Quote
  #6  
Old October 23rd, 2002, 11:39 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thanks a lot for your help, I'll try that.

Reply With Quote
  #7  
Old October 23rd, 2002, 08:10 PM
ghatzhat ghatzhat is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Posts: 361 ghatzhat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 9 m 5 sec
Reputation Power: 7
jhazard,

the changes in the includes will only be reflected in the overall page if the file that is doing the including changes too.

so, to come back to your initial example, if you edit "page2" and resave it, also resave "page1" (some editors make this a hassle - i've been using dreamweaver mx recently, and i can just a space/char and then remove it again, and it'll allow me to re-save). that way, your app server sees that "page1" has changed and recompiles it - giving you the changes you made in "page2" in the final page.
__________________
Little more than a playground for the bugs that live beneath us...

Reply With Quote
  #8  
Old October 24th, 2002, 11:06 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
What application server are you using? I know Tomcat 4.x can be setup to reload .class files when they are recompiled (I'd assume it would catch included jsps as well).
__________________
-james

Reply With Quote
  #9  
Old October 25th, 2002, 03:05 AM
jhazard jhazard is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 21 jhazard User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
thats interesting, tomcat 4.04

Reply With Quote
  #10  
Old October 25th, 2002, 10:19 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
There's a reloadable attribute in the context tag in your server.xml file. Make sure it's set to "true". If it's *already* true, well, then I guess you're stuck .

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesJava Help > Include file not changing


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway