aspose file tools
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

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
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: 6221

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.

I agree. Here's the link:
subject: Action Errors and style class