This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes using css file in jsp along with tiles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "using css file in jsp along with tiles" Watch "using css file in jsp along with tiles" New topic
Author

using css file in jsp along with tiles

sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
I m using a css file with tiles but it is not working.

my tiles.xml is:



and my jsp is:



my css file "mail.css" lies in tomcat_root/web-app-name/css/mail.css

and jsp is in tomcat_root/web-app-name/jsps/mailbase.jsp

control flow is like:

request---------->inboxaction(struts2.xml)------------------>inbox.tile (tiles.xml)
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

Then your next step is to look at the generated HTML. What do you see there?
sandy sean
Ranch Hand

Joined: Dec 30, 2010
Posts: 69
The html output is not showing any of the formatting i described in css file. output is like as if i have not provided css file at all (it is not able to read css file)
 
wood burning stoves
 
subject: using css file in jsp along with tiles
 
Similar Threads
How do i change only body page in tiles.xml file in struts2
tiles and <sx:autocompleter>
jsp tag pagination and tiles
problem in Tiles2 intrigation with jsf when we keep jsp in folder location
at org.apache.myfaces.tomahawk.application.jsp.JspTilesTwoViewHandlerImpl.getServletMapping