You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Thinh Doan <td...@twjconsulting.com> on 2001/09/21 01:49:32 UTC

style class not rendered for errors

The following setting for error display did not seem to affect eventhough
the jsp that contains <html:errors/> does link in the style sheet.  ANy idea
why this is so?

Thank you for your response.

Thinh

in ApplicationResources.properties:
errors.header=<hr><span class="error">Errors:<ul>
errors.footer=</ul></span><hr>

in jsp:
...
<link rel="stylesheet" href="../style/test.css" type="text/css">
<html:base/>
</head>
<body bgcolor="white">
<html:errors/>
...


RE: style class not rendered for errors

Posted by Thinh Doan <td...@twjconsulting.com>.
My bad, Bill.  Since all my jsps are under /jsp, I was not careful in making
sure everything is relative to it.  It works now.  Thanks much.

Thinh

-----Original Message-----
From: Bill Clinton [mailto:bclinton@snipermail.com]
Sent: Friday, September 21, 2001 2:53 PM
To: struts-user@jakarta.apache.org
Subject: Re: style class not rendered for errors


Thinh,
     I doubt that  the <html:errors> would interefere with style sheets
as they are rendered on the client side.  I would check these things:

1) When you select "view source" in your browser, are the error header
and footer in your page the way you have them in the properties file?
2) if, instead of a linked style sheet, you put the style definition
directly in the JSP, do you have the same result?

Bill

Thinh Doan wrote:

>The following setting for error display did not seem to affect eventhough
>the jsp that contains <html:errors/> does link in the style sheet.  ANy
idea
>why this is so?
>
>Thank you for your response.
>
>Thinh
>
>in ApplicationResources.properties:
>errors.header=<hr><span class="error">Errors:<ul>
>errors.footer=</ul></span><hr>
>
>in jsp:
>...
><link rel="stylesheet" href="../style/test.css" type="text/css">
><html:base/>
></head>
><body bgcolor="white">
><html:errors/>
>...
>
>
>.
>




Re: style class not rendered for errors

Posted by Bill Clinton <bc...@snipermail.com>.
Thinh,
     I doubt that  the <html:errors> would interefere with style sheets 
as they are rendered on the client side.  I would check these things:

1) When you select "view source" in your browser, are the error header 
and footer in your page the way you have them in the properties file?  
2) if, instead of a linked style sheet, you put the style definition 
directly in the JSP, do you have the same result?

Bill

Thinh Doan wrote:

>The following setting for error display did not seem to affect eventhough
>the jsp that contains <html:errors/> does link in the style sheet.  ANy idea
>why this is so?
>
>Thank you for your response.
>
>Thinh
>
>in ApplicationResources.properties:
>errors.header=<hr><span class="error">Errors:<ul>
>errors.footer=</ul></span><hr>
>
>in jsp:
>...
><link rel="stylesheet" href="../style/test.css" type="text/css">
><html:base/>
></head>
><body bgcolor="white">
><html:errors/>
>...
>
>
>.
>