It's not a secret anymore!*
The moose likes Struts and the fly likes How to use CSS with Struts Tags? 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 "How to use CSS with Struts Tags?" Watch "How to use CSS with Struts Tags?" New topic

How to use CSS with Struts Tags?

Aashu Mahajan
Ranch Hand

Joined: May 27, 2011
Posts: 113

I Have tried very hard to know how to use css with struts tags but i could not any solution, please tell the way, syntax to use css in struts. see

I have .css file(pmb.css)

and I have a .jsp file (Company.jsp)

Here in .jsp i want to use css for textfield and label. Please tell me where i am wrong?

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

hi Aashu,

put theme="simple" in s:form like
I agree. Here's the link:
subject: How to use CSS with Struts Tags?
Similar Threads
Exception in Struts namespace
Getting org.apache.jasper.JasperException in Struts2
Struts2 - jquery Plugin - Fieldset
NullPointerException at the SessionFactory create line.
Combobox question.