You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Unnikrishnan <un...@indpro.se> on 2007/11/23 07:05:57 UTC

How to include CSS file in struts

Hello

I am new to struts and started building a sample application . I would like
to know how a css file should be included in struts2 . and where should I
include the file exactly (in which folder).

Could any one please help

thanks
Unnikrishnan
-- 
View this message in context: http://www.nabble.com/How-to-include-CSS-file-in-struts-tf4859909.html#a13907378
Sent from the Struts - User mailing list archive at Nabble.com.


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


RE: How to include CSS file in struts

Posted by Martin Gainty <mg...@hotmail.com>.
Hellopathing scenarios with css are *usually* relative to the tag which invokes the stylesheet
I would recommend creating a base css property which you could then use in your build-script e.g.
http://mail-archives.apache.org/mod_mbox/struts-dev/200012.mbox/%3C20001219192308.56679.qmail@locus.apache.org%3E
dojo javascript paths are accomplished via relative path or by invokingRegisterModulePath(Module,Prefix)
http://dojotoolkit.org/pipermail/dojo-checkins/2006-August/009561.htmlHTHMartin ______________________________________________Disclaimer and confidentiality noteEverything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution to any party other than intended recipient. Sender does not necessarily endorse content contained within this transmission.> > If you look at the struts2-showcase and see where they are there.> They are in the root directory (WebContent) under styles.> In the JSPs I had to use the full path to the style sheet> as relative paths did not seem to work after calling an action.> There is a description if you search the archives.> > ----- Original Message -----> From: "Unnikrishnan" <un...@indpro.se>> To: <us...@struts.apache.org>> Sent: Friday, November 23, 2007 6:05 AM> Subject: How to include CSS file in struts> > > >> > Hello> >> > I am new to struts and started building a sample application . I would> like> > to know how a css file should be included in struts2 . and where should I> > include the file exactly (in which folder).> >> > Could any one please help> >> > thanks> > Unnikrishnan> > --> > View this message in context:> http://www.nabble.com/How-to-include-CSS-file-in-struts-tf4859909.html#a1390> 7378> > Sent from the Struts - User mailing list archive at Nabble.com.> >> >> > ---------------------------------------------------------------------> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org> > For additional commands, e-mail: user-help@struts.apache.org> >> >> > > > ---------------------------------------------------------------------> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org> For additional commands, e-mail: user-help@struts.apache.org> 
_________________________________________________________________
Share life as it happens with the new Windows Live.Download today it's FREE!
http://www.windowslive.com/share.html?ocid=TXT_TAGLM_Wave2_sharelife_112007

Re: How to include CSS file in struts

Posted by John Bell <jb...@btclick.com>.
If you look at the struts2-showcase and see where they are there.
They are in the root directory (WebContent) under styles.
In the JSPs I had to use the full path to the style sheet
as relative paths did not seem to work after calling an action.
There is a description if you search the archives.

----- Original Message -----
From: "Unnikrishnan" <un...@indpro.se>
To: <us...@struts.apache.org>
Sent: Friday, November 23, 2007 6:05 AM
Subject: How to include CSS file in struts


>
> Hello
>
> I am new to struts and started building a sample application . I would
like
> to know how a css file should be included in struts2 . and where should I
> include the file exactly (in which folder).
>
> Could any one please help
>
> thanks
> Unnikrishnan
> --
> View this message in context:
http://www.nabble.com/How-to-include-CSS-file-in-struts-tf4859909.html#a1390
7378
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>



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