File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes struts.xml file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts.xml file" Watch "struts.xml file" New topic

struts.xml file

Samanthi perera
Ranch Hand

Joined: Jan 08, 2010
Posts: 510
i found these code in my struts.xml file

what are the use of

what are the use of

3)are these codes required for every file?
Ankit Garg

Joined: Aug 03, 2008
Posts: 9291

This must be in the web.xml not struts.xml. The config init parameter tells struts where to look for the struts configuration file. You can find the details about initialization parameters of ActionServlet here...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
It is sorta covered in the JavaRanch Style Guide.
subject: struts.xml file
Similar Threads
The method doMarkDoneOutboundCall(null, String) is undefined for the type Done_jsp
java.lang.NullPointerException at the starting of tomcat 6.0
Struts.xml file in Eclipse
what does <load-on-startup> do in web.xml ?
Need related struts subapps in one struts app