struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <Larry.Mead...@plumcreek.com>
Subject Re: help with xml syntax of JSP with taglibs
Date Thu, 05 Feb 2004 21:22:05 GMT
can you use the jstl xml tags to do that? I am guessing you can, but
don't have time now to look it up...

LArry

>>> tj.herring@autozone.com 02/05/04 1:57 PM >>>
Hello...

I have a file called /foo/bar.jsp.

The file bar.jsp is an XML syntax JSP.  The file is only being used by a
'forward' therefore the URL in the browser window stays the same (for
example: http://localhost/webapp/index.jsp).

index.jsp forwards to /foo/bar.jsp like this:
<jsp:forward page="/foo.bar.jsp"/>


Bar.jsp requires the use of a CSS that is located in "/css/main.css"
 I refer to the css in the XML JSP like this:
<link href="/css/main.css" rel="stylesheet" type="text/css"/>

The problem is that /css/main.css is not valid!  It does not generate
the
proper path!   I have been advised to use this instead:
<link href="<html:rewrite page='/css/main.ss'>" rel="stylesheet" type
="text/css"/>

The problem is that the this does not work since it is not valid XML.

Am I missing something here?  How do I refer to a stylesheet in a JSP
(that
will only be used by forward's) and maintain the proper paths????

Does the html or any other taglib do this for me???

Thanks in advance for the help!

TJ Herring
tj.herring@autozone.com



------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you
received
this in error, please contact the sender and delete the material from
any
computer.



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message