• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.tiles.Attribute  RSS feed

 
Buddhi Vikasitha
Greenhorn
Posts: 17
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is what i get when i try to launch my simple struts-tiles application. Can someone show me where im doing wrong or direct me into a post with a good solution to this problem. Thanks in advance.

This is the output i get via the browser >>


This one is from the Glassfish4.0 Log >>


My struts-tiles.xml file >>


My struts.xml >>


My baseLayout.jsp file >>
 
Buddhi Vikasitha
Greenhorn
Posts: 17
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I checked my java files and other jsp files and they are clean in this conflict (as far as i know..). Kindly tell me if one of them could cause the above problem then i will look into them again. thanks
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Somewhere, somewhere, you are getting a String and casting it to …Attribute.
 
Buddhi Vikasitha
Greenhorn
Posts: 17
Java Netbeans IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Somewhere, somewhere, you are getting a String and casting it to …Attribute.


I found it, just after posting this, it should be the 'name' attribute instead of 'value' in the tag in the ... Solved!! Thanks!
 
Campbell Ritchie
Marshal
Posts: 56578
172
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!