You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Himanshu Rathore <te...@gmail.com> on 2008/05/13 18:35:36 UTC

Tag Data Rendering Issue

When using <s:actionerror > tag, the first character of error message is
automatically getting converted to upper case. I haven't set any
"text-transform" property in my CSS.

If I do "View Source", I see proper text but on JSP its behaving weirdly.

My CSS:
.errorMessage {
color: red;
font: 10px verdana, arial, helvetica, sans-serif;
}

In "View Source"
<ul>
<li><span class="errorMessage">Please enter User Id</span></li>
</ul>

But on JSP, it is displayed as
Please Enter User Id

I have included struts.properties in my project classpath and have set *
struts.ui.theme=simple*

What could be the reason of this behaviour?

Re: Tag Data Rendering Issue

Posted by Himanshu Rathore <te...@gmail.com>.
Hi Laurie,

A silly mistake at my end. Had included a TD in CSS wherein text-transform
was set to capitalise. And I didn't pay much attention to this particular
attribute assuming that nothing would be there.

Thanks for your help

On Tue, May 13, 2008 at 10:32 PM, Laurie Harper <la...@holoweb.net> wrote:

>  Himanshu Rathore wrote:
>
>> When using <s:actionerror > tag, the first character of error message is
>> automatically getting converted to upper case. I haven't set any
>> "text-transform" property in my CSS.
>>
>> If I do "View Source", I see proper text but on JSP its behaving weirdly.
>>
>> My CSS:
>> ..errorMessage {
>> color: red;
>> font: 10px verdana, arial, helvetica, sans-serif;
>> }
>>
>> In "View Source"
>> <ul>
>> <li><span class="errorMessage">Please enter User Id</span></li>
>> </ul>
>>
>> But on JSP, it is displayed as
>> Please Enter User Id
>>
>> I have included struts.properties in my project classpath and have set *
>> struts.ui.theme=simple*
>>
>> What could be the reason of this behaviour?
>>
>
> Sounds like *something* is applying a text-transform to the text. When you
> view source, what stylesheets do you see referenced? Are there any <style>
> blocks, or inline styles in the markup? You might try using the Web
> Developer or Firebug extensions for Firefox to examine the DOM and determine
> what styles are really being applied to that element of some additional
> insight into what's going on.
>
> L.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: Tag Data Rendering Issue

Posted by Laurie Harper <la...@holoweb.net>.
Himanshu Rathore wrote:
> When using <s:actionerror > tag, the first character of error message is
> automatically getting converted to upper case. I haven't set any
> "text-transform" property in my CSS.
> 
> If I do "View Source", I see proper text but on JSP its behaving weirdly.
> 
> My CSS:
> ..errorMessage {
> color: red;
> font: 10px verdana, arial, helvetica, sans-serif;
> }
> 
> In "View Source"
> <ul>
> <li><span class="errorMessage">Please enter User Id</span></li>
> </ul>
> 
> But on JSP, it is displayed as
> Please Enter User Id
> 
> I have included struts.properties in my project classpath and have set *
> struts.ui.theme=simple*
> 
> What could be the reason of this behaviour?

Sounds like *something* is applying a text-transform to the text. When 
you view source, what stylesheets do you see referenced? Are there any 
<style> blocks, or inline styles in the markup? You might try using the 
Web Developer or Firebug extensions for Firefox to examine the DOM and 
determine what styles are really being applied to that element of some 
additional insight into what's going on.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org