users@glassfish.java.net

Re: Problem with context-root in URL

From: <glassfish_at_javadesktop.org>
Date: Mon, 21 Jun 2010 13:33:30 PDT

If you set context-root as empty String, then it behaves as if it is not set. Hence, it will get the web application name as the context root.
Default web module is the way to change the context root to /.
If a web module is deployed and configures as a default web module, then it will serve both http://<host>:<port> and http://<host>:<port>/<context-root>
So, even if the struts lib redirect to <context-root>, then the request can still be served without problem.

See http://docs.sun.com/app/docs/doc/821-1751/beaga?l=en&a=view&q=GlassFish+default+web+module for more details.
[Message sent by forum member 'swchan2']

http://forums.java.net/jive/thread.jspa?messageID=475234