On Wednesday, Mar 19, 2003, at 09:29 US/Pacific, Christian Cantrell
wrote:
> I'm wondering how many of you use CFMX with JRun (or another J2EE
> server) and use a context root other than "/". In other words, how
> many of you have to use /cfusion or /cfmx to access your ColdFusion
> pages? I'm wondering because this type of configuration can affect the
> way sample applications are distributed.
A useful tip:
CFMX applications can be written to work regardless of the actual
context root:
In Application.cfm (for example):
<cfparam name="request.contextRoot"
default="#getPageContext().getRequest().getContextPath()#">
Then use #request.contextRoot# wherever you need to construct a
root-relative URL:
<a href="#request.contextRoot#/path/to/myfile.cfm">link</a>
Sean A Corfield -- http://www.corfield.org/blog/
"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4