You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Sunil Sharma (C)" <sn...@sapient.com> on 2003/08/02 16:20:56 UTC

error in writing message on JSP using

Hi,
 
While using tag <bean:message key="errors.header"/> 
 
I am getting following error on my server console. 
 
java.lang.ClassCastException: java.lang.String
     at org.apache.struts.util.RequestUtils.message(RequestUtils.java:930)
     at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
 
Can any one tell me why I am getting this error
 
Thanks
Sunil

Re: error in writing message on JSP using

Posted by tim <bs...@insightoutsight.com.au>.
I don't know why your getting the CCE however, when using the 
errors.{header,footer} I have always used the <html:errors /> tag 
(specifying no property) which results in the errors.{header,footer} 
message being rendered.

Sunil Sharma (C) wrote:

>Hi,
> 
>While using tag <bean:message key="errors.header"/> 
> 
>I am getting following error on my server console. 
> 
>java.lang.ClassCastException: java.lang.String
>     at org.apache.struts.util.RequestUtils.message(RequestUtils.java:930)
>     at org.apache.struts.taglib.bean.MessageTag.doStartTag(MessageTag.java:294)
> 
>Can any one tell me why I am getting this error
> 
>Thanks
>Sunil
>
>  
>



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