This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem in parsing struts-config

 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
i have a problem in parsing my struts-config.
the error appears only when i add my message-resources tag
<message-resources key="resource" parameter="ApplicationResources" />
<message-resources key="property" parameter="ProjectProperties" />

what is the problem in it?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It'd be easier to help if you specified what the error is. For example, is it in the correct place in the config file?
 
Jordan Smith
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


i get it when i run the server.
As well- I have a red mark on the <struts-config> which says that it's not formed correctly.
when i remove the <message-resources> tag, it's valid again!
 
Kuyni Kumar
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please change your struts dtd configuration.
It should work.
 
Shankar Tanikella
Ranch Hand
Posts: 329
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
04/12/2008 15:05:15 org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 115 column 17: The content of element type "struts-config" must match "(data-sources?,form-beans?,global-exceptions?,global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".

If it doesnt work, also check for the order of the elements. Check if you are facing "message-resources" definition after the "controller" and before the "plug-in" definitions as mentioned above.

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic