This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Action Errors and style class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Errors and style class" Watch "Action Errors and style class" New topic

Action Errors and style class

charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67
I have my errors defined in the jsp page as :

<td style="error" colspan='2'>
<html:messages id="errors" >
<li><bean:write name="errors" /></li>

In the style sheet my class is defined as

A.error {
COLOR: #CC0000; FONT-FAMILY: Verdana, Geneva, Arial, Helvetica, sans-serif; FONT-WEIGHT: bold; FONT-SIZE: 13px; TEXT-DECORATION: none

However my style sheet class is not being taken and i am still getting the errors messages in black. any idea on why this is happening?

Junilu Lacar

Joined: Feb 26, 2001
Posts: 6270

This doesn't really have anything to do with Struts; it's a CSS issue.


td.error {


<td class="error">

[ August 19, 2004: Message edited by: Junilu Lacar ]

Junilu - [How to Ask Questions] [How to Answer Questions]
charu latha
Ranch Hand

Joined: Aug 20, 2002
Posts: 67

thanks for the input. got that working.

Have you checked out Aspose?
subject: Action Errors and style class
It's not a secret anymore!