Ted Husted wrote:
> Sorry for the troubles with the inital WAR. I was experimenting with an
> alternate configuration, which, as it turns out, is not compatible with
> all versions of all containers. I've returned to the conventional
> configuration, and you may wish to download the updated copy.
>
> < http://www.husted.com/about/struts/struts-stub.zip >
I download this WAR and its runs ok on JBOSS-2.2.2_Tomcat-3.2.2 on
win2kpro..
That was after I encounter this problem.
[EmbeddedTomcatSX] resolveEntity('-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN',
'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
[EmbeddedTomcatSX] Resolving to alternate DTD
'jar:file:D:\JBoss_Tomcat\tomcat\webapps\struts-stub\WEB-INF\lib\struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
[EmbeddedTomcatSX] New org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Set org.apache.struts.action.ActionForward properties
[EmbeddedTomcatSX] Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[welcome])
[EmbeddedTomcatSX] Pop org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] New org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Set org.apache.struts.action.ActionForward properties
[EmbeddedTomcatSX] Call
org.apache.struts.action.ActionServlet.addForward(ActionForward[help])
[EmbeddedTomcatSX] Pop org.apache.struts.action.ActionForward
[EmbeddedTomcatSX] Parse Error at line 45 column -1: Element
"struts-config" does not allow "form-beans" here.
[EmbeddedTomcatSX] org.xml.sax.SAXParseException: Element "struts-config"
does not allow "form-beans" here.
[EmbeddedTomcatSX] at
org.apache.crimson.parser.Parser2.error(Parser2.java:3013)
[EmbeddedTomcatSX] at
org.apache.crimson.parser.ValidatingParser$ChildrenValidator.consume(ValidatingParser.java:349)
Comparing the struts-config.xml file with those in other struts example, I
move the "form-beans" element infront of <global-forwards>
and it works.
So the order is important here.
Just started to learn Struts.
Thanks
Soo Aun