• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts Validation Error

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello I am receiving this error in my JSP page:

[java/lang/String incompatible with org/apache/struts/util/MessageResources]: java.lang.ClassCastException: java/lang/String incompatible with org/apache/struts/util/MessageResources.

I know that my app is picking up my properties file. Within my debugger I can see the label that was generated thru the validator. It seems write after I go past my bean write code is when this error is thrown:

<html:messages id="error" bundle="error">
<bean:write name="error" bundle="error"/>
</html:messages>

Has anyone came across this error?

Thanks for your help.
 
Eric Schattschneider
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found it. FYI it was some commented out tag

<!-- <tr>
<td colspan="5" valign="top"><html:errors bundle="error"/></td>
</tr>-->

Apparently the commented trick did not work.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic