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
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: 9462

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
I agree. Here's the link:
subject: struts.xml file
It's not a secret anymore!