QM wrote:
: - Finally, is it the best practice to hard-code the 'context' prefix in
: your application?
JSTL. I forget the exact tag names, but any JSTL reference will have
them listed. There's a tag for creating context-relative links, and (I
believe) one for creating context-relative image
Hi,
Your problems arise because of imperfect/relaxed implementations of the
servlet spec by earlier containers. Tomcat is strict. I don't think
there's a double-meaning to 'context' personally but that's a minor
point anyways. In addition to the spec, see this for directory
structures:
QM -
Thanks very much for your detailed reply. I have Shawn Bayern's JSTL in
Action, and you're right - the URL issue is covered. I have also reviewed
relevant portions of the Servlet Spec 2.4, which sets out the general
approach to directory structure in applications. It seems safest to
: - Is there an online guide that helps app developers select a directory
: structure that is portable across servlet containers?
The servlet spec.
Do a search at java.sun.com for it. You'll want 2.3 if you're running
Tomcat 4, or 2.4 if you're running Tomcat 5. Either way, it's available
]
Subject: Re: directory structure and porting issues
Message-ID: [EMAIL PROTECTED]
References: [EMAIL PROTECTED]
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: [EMAIL PROTECTED]
User-Agent: Mutt/1.3.28i
X-Spam-Rating: daedalus.apache.org 1.6.2 0