Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
iwhome?
DavidMusser
Beside's hard coding iw-home in my jsp file, is there a simple method to find iw-home from a jsp file?
David R Musser
Eye Street Software
540-542-5257
dmusser@eyestreet.com
Win2k, TS 6.5 SP1, OD 6.01
Find more posts tagged with
Comments
PaulW
i just answered this in another post. I have the following in my code.
import com.interwoven.serverutils100.IWConfig;
protected static final String IWHOME = IWConfig.getConfig().getIWHome();
DavidMusser
But it's so much easier to hard code it, and then search and replace for d:\iw-home if we install somewhere else... Hard Code's rule ;-)
Kidding... Thanks for the code I will start using it monday!!!
-D
David R Musser
Eye Street Software
540-542-5257
dmusser@eyestreet.com
Win2k, TS 6.5 SP1, OD 6.01
PaulW
holy ****, good idea. I am going to put all my code into 1 constant and just execute that constant.
DavidMusser
That's an excellent idea... We should write a book... "Hard Code and Constant A Better Coding Style!"
David R Musser
Eye Street Software
540-542-5257
dmusser@eyestreet.com
Win2k, TS 6.5 SP1, OD 6.01
Migrateduser
that would work... as long as the garbage collector doesn't collect your constant.