File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Basic questions about struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Basic questions about struts" Watch "Basic questions about struts" New topic

Basic questions about struts

Frank Sikuluzu
Ranch Hand

Joined: Dec 16, 2003
Posts: 116
New to Struts. Two questions ---

1) besides strut-config.xml, do I still need a) web.xml and b) the .xml file that's specific to the web container (usually required for that container vendor)?

2) is Struts supported by Macromedia Jrun and Silver Stream ?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
1. Since struts nothing more than a framework that runs on top of a J2EE web application, a struts web application must have everything any other J2EE Web application has. The answer is yes, you do need a web.xml file, and whatever other xml files are required by the J2EE application server you're running your application on. Not only that, but the web.xml must have some very specific configuration information in it for Struts to run properly. My advice is to begin any new Struts application with the materials in the struts-blank.war file that is provided with the download. Then examine the entries in the web.xml file, and you will see what I mean.

2. To my knowledge, a struts web application will run on any J2EE application server that conforms to J2EE 1.3 or above.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Basic questions about struts
It's not a secret anymore!