Hi,

You're using an relative path to your css file (css/screen.css), so the
user page with path /user/... does it find it as it expects it in
/user/css/screen.css.

One way to solve it is to use a tag to render the full path to the css
file, e.g,

<c:url var="stylesheetUrl" value="/css/screen.css" />
<link rel="stylesheet" href="<c:out value="${stylesheetUrl}"/>"
type="text/css"
media="screen, print" />

With jsp 2.0, you don't need the <c:out> tag.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: 15 September 2005 17:09
To: Struts Users Mailing List
Subject: Struts and DisplayTag CSS?

For this link, http://localhost:8080/erp/
displaytag is okay to display with css beautifully.

For this link, http://localhost:8080/erp/addUserProfile.do
all the css effect disappear.

my web.xml
  <welcome-file-list>
    <welcome-file>/user/addUserProfile.jsp</welcome-file>
  </welcome-file-list>

my jsp file has a css line
  <head>
  <link rel="stylesheet" href="css/screen.css" type="text/css"
media="screen, print" />
  </head>

my struts mapping is
    <action
      attribute="userProfileForm"
      input="/user/addUserProfile.jsp"
      name="userProfileForm"
      parameter="method"
      path="/addUserProfile"
      scope="request"
      type="com.erp.struts.user.action.UserProfileDispatchAction" >
      <forward name="success" path="/user/addUserProfile.jsp" />
    </action>

Any hints to solve?

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
E-Mail Disclaimer 
 
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene 
Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung 
reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. 
Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, 
Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser 
E-Mail nicht gestattet ist. Diese Nachricht ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie 
nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, 
so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen.


For legal and security reasons the information provided in this e-mail is not 
legally binding. Upon request we would be pleased to provide you with a legally 
binding confirmation in written form. Any form of unauthorised use, 
publication, 
reproduction, copying or disclosure of the content of this e-mail is not 
permitted. 
This message is exclusively for the person addressed or their representative. 
If you are not the intended recipient of this message and its contents, please 
notify the sender immediately.

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

Reply via email to