users@glassfish.java.net
Re: Glassfish: how to get application root (such as Tomcat ${APP_ROOT})
This message
: [
Message body
] [ More options (
top
,
bottom
) ]
Related messages
: [
Next message
] [
Previous message
] [
In reply to
] [
Next in thread
] [
Replies
]
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]
From
: Shing Wai Chan <
shing.wai.chan_at_oracle.com
>
Date
: Sat, 14 Jan 2012 09:51:42 -0800
If you have a HttpServletRequest, then you can access the ServletContext by
request.getServletContext()
then you get call getRealPath("/").
This message
: [
Message body
]
Next message
:
forums_at_java.net: "jsp page buffer directive fails"
Previous message
:
forums_at_java.net: "Re: java.lang.ClassCastException in glassfish"
In reply to
:
forums_at_java.net: "Glassfish: how to get application root (such as Tomcat ${APP_ROOT})"
Next in thread
:
forums_at_java.net: "Re: Glassfish: how to get application root (such as Tomcat ${APP"
Reply
:
forums_at_java.net: "Re: Glassfish: how to get application root (such as Tomcat ${APP"
Contemporary messages sorted
: [
by date
] [
by thread
] [
by subject
] [
by author
] [
by messages with attachments
]