Get context for static content
I'm trying to get context for a static project in WebSphere server using
below line of code. This works in a local environment with the static
project deployed in a ear file. But in a test environment, where the
static content is deployed into a web server, I can't get the context as
expected. Is there a way to obtain it?
ServletContext staticCtxt = getServletContext().getContext("/context");
No comments:
Post a Comment