Have you tried the html:base tag?  Remember with tiles the urls are relative
to the template location.  I have found it covenant to anchor the base tag
to the servlet context so all links are relative to the app root.

Cal 

http://www.calandva.com/            Last update 01/26/03


-----Original Message-----
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 10:09
To: 'Struts Users Mailing List'
Subject: RE: struts 1.1 b2 messes up w/ CSS?

> When I say it doesn't work, it means that css styles are just silently
> ignored.. my output pages appear from the jsp, but it looks ugly :)

Have you tried hitting reload?  I'm having the same problem with
1.1b3/Tomcat 4.1.  The style sheets do not get applied to the page on the
first page access.  However, if you hit reload in the browser, the fonts and
colors all change, so I know the location of the style sheet is right.

And... in an attempt to help you with your problem, I just found mine. 

This JSP code:
<link rel=stylesheet href="<html-el:rewrite page="" /><tiles:getAsString
name='stylesheet'/>" type="text/css">

is generating this HTML:
<link rel=stylesheet
href="/bendev;jsessionid=F89C52F7FBD93B175CD0B2805BBCED6A/css/style.css"
type="text/css">

Then when I hit reload/refresh, the [correct] generated HTML is:
<link rel=stylesheet href="/bendev/css/style.css" type="text/css">

So, can someone recommend a way to get the name of the context into a link,
without the jsessionid being included?

Thanks!

--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management
  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are proprietary 
and confidential information intended only for the use of the recipient(s) named 
above.  If you are not the intended recipient, you may not print, distribute, or copy 
this message or any attachments.  If you have received this communication in error, 
please notify the sender by return e-mail and delete this message and any attachments 
from your computer.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to