| Author |
shorter way to access context path using EL
|
Kantutan Tayo
Greenhorn
Joined: Oct 07, 2005
Posts: 22
|
|
is there a shorter (built-in) way to access the context path using EL i.e. shorter version of ${pageContext.request.contextPath}? just wondering. because i have too much on my pages. i know it can be done by assigning some constant string = request.getContextPath(), so don't suggest that idea. :\ NOTE: im looking for a built-in method.
|
SCJP
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
Now you can use ${contextPath} on the rest of the page. Otherwise, no. [ October 07, 2005: Message edited by: Bear Bibeault ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Kantutan Tayo
Greenhorn
Joined: Oct 07, 2005
Posts: 22
|
|
|
yeah, im already doing that. so no other way, eh?
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56157
|
|
|
Not built in. You could also set up a scoped variable in the controller. Or, since it will be invariant throughout the web app's life cycle, store it as an application-scoped variable at web app startup.
|
 |
 |
|
|
subject: shorter way to access context path using EL
|
|
|