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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Errors and style class" Watch "Action Errors and style class" New topic
Author

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 :

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

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?

Thanks
Junilu Lacar
Bartender

Joined: Feb 26, 2001
Posts: 4745
    
    7

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

Use:

td.error {
...
}

and

<td class="error">

instead.
[ 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
hi,

thanks for the input. got that working.

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Action Errors and style class