Test your skills through the online practice test: Struts Quiz Online Practice Test

Related differences

Struts vs JSFStruts vs SpringStruts 1 vs Struts 2
Struts 1.1 vs Struts 1.2Struts 1.2 vs Struts 1.3

Ques 66. Library Dependency


Struts 1.1 now depends on a handful of libraries from other Jakarta subprojects (e.g. Commons-Logging, Commons-Collections, etc.). Some of these libraries may cause classloading conflicts in some servlet containers. So far, people have reported in the mailing list the classloading problem of commons-digester/jaxp1.1, and commons-logging causing deployment difficulties in Struts 1.1 applications running on Weblogic 6.0. (The problems have been corrected in Weblogic 6.1 and 7.0.)

Is it helpful? Add Comment View Comments
 

Ques 67. Resources under WEB-INF


According to the Servlet specification, resources (e.g. JSP files) stored under WEB-INF are protected and cannot be accessed directly by the browsers. One design idiom for Struts 1.0 is to put all the JSP files under WEB-INF and front them by Actions so that clients cannot illegally access the JSPs. With the introduction of sub-application prefixes in Struts 1.1, mapping resources under WEB-INF gets complicated. Extra configuration steps utilizing the pagePattern and forwardPattern attributes of the element in struts-config.xml is required to inform Struts to construct the paths correctly. More specifically, you need to set these attributes to the pattern "/WEB-INF/$A$P".

Is it helpful? Add Comment View Comments
 

Ques 68. What is the Jakarta Struts Framework?


Jakarta Struts is an open source implementation of MVC
(Model-View-Controller) pattern for the development of web based applications.
Jakarta Struts is a robust architecture and can be used for the development of applications of any size.
The ?Struts framework? makes it easier to design scalable, reliable Web applications.

Is it helpful? Add Comment View Comments
 

Ques 69. What is an ActionServlet?

The class org.apache.struts.action.ActionServlet is called the ActionServlet.
In the Jakarta Struts Framework this class plays the role of controller.
All the requests to the server go through the ?Controller?.
The ?Controller? is responsible for handling all the requests.

Is it helpful? Add Comment View Comments
 

Ques 70. How can one make any ?Message Resources? definitions file available to the ?Struts Framework? environment?

Message Resources definitions file are simple .properties files and
these files contain the messages that can be used in the struts project.
?Message Resources? definition files can be added to the struts-config.xml file
through <message-resources /> tag. Example:
<message-resources parameter="MessageResources" />

Is it helpful? Add Comment View Comments
 

Most helpful rated by users: