Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Struts
The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-s
Bin Smith
Ranch Hand
Posts: 514
1
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hello!
I cannot understand what is wrong with my struts.xml and what that error means
My struts.xml:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd"> <struts> <package name="basicstruts2" extends="struts-default"> <action name="index"> <result>/index.jsp</result> </action> </package> <!-- <constant name="struts.devMode" value="true" /> --> </struts>
The error:
The content of element type "struts" must match "((package|include|bean|constant)*,unknown-handler-stack?)".
The content of element type "package" must match "(result-types?,interceptors?,default-interceptor-ref?,default- action-ref?,default-class-ref?,global-results?,global-exception-mappings?,action*)".
Thank you!
To earn money on java go to upwork.com
Bin Smith
Ranch Hand
Posts: 514
1
I like...
posted 10 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
This struts.xml works for me:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.devMode" value="true" /> <package name="helloworld" extends="struts-default"> <action name="start"> <result>/index.jsp</result> </action> <!-- <action name="hello" class="com.tutorialspoint.struts2.HelloWorldAction" method="execute"> <result name="success">/HelloWorld.jsp</result> </action> --> </package> </struts>
To earn money on java go to upwork.com
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Issue configuring global results
Newbie HelloWorld Struts.xml problem
struts2 + interceptor
validation problem.
How to run Struts 2 offline
More...