I'm trying to get my first
Struts webapp going, converting an existing
tiny non-Struts webapp to Struts. I've quickly come to the conclusion that I have a
LOT more to learn, in part because I can't even understand the error message I'm getting. When I look in
Tomcat's stderr log, I see this org.xml.sax.SAXParseException error:
SEVERE: Parse Error at line 35 column 17: The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form-beans?,global-exceptions?, global-forwards?,action-mappings?,controller?,message-resources*,plug-in*)".
Okay, so there's something wrong with my struts-config.xml file, I get that. What I don't understand are the "?" and "*" after each of the items listed. Does "?" mean "this one is optional" while "*" means "you can have 0 or more of these"? Or does the "?" mean "this is missing"?
A journey of a thousand miles generally begins with a mysterious error message.