This is in response to the stylesheet URL question, not the MAPPING configuration 
error at boot time.

The HTML tag 
<link href="/styles/general.css" rel="stylesheet" type="text/css">

is only interpreted by the browser; it is not server side code.  The browser knows 
nothing about context paths or war files or even the existence of the Servlet API; it 
just sees a URL which it has no choice but to interpret as relative to the server root.

If you output a URL, you need to include the context path in the URL.  Helping to 
manage this kind of plumbing work is one of the main benefits of using taglibs (e.g 
the Struts html taglib and its html:link tag).



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833347#3833347

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833347


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE. 
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to