Can we have multiple struts-config files in a single web
app? If yes why should we have them? Will multiple copies
make any impact on performance?
Answers were Sorted based on User's Feedback
Answer / sumit sharma
Yes it is possible... If you are developing the distributed
applications (means do you have diff modules)
then you can provide any number of struts-config.xml files
based on your number of modules.
But the thing is you must enter those struts-config.xml
files details in deployment descripter (i.e. web.xml) like
<init-param>
<param-name>
config</param-name>
<param-value>/WEB-INF/struts-first-config.xml /WEB-
INF/struts-second-config.xml /WEB-INF/struts-third-
config.xml</param-value>
</init-param>
Here I assumed as 'I have 3 modules'. Thats why I entered 3
struts-config.xml files information.
In the time of calling files which are provided under
different modules you must provide Page and prefix
attributes in
your URL.
| Is This Answer Correct ? | 40 Yes | 1 No |
Answer / kalyan
Yes,we have mulitiple struts-config files ,it depends on
the modules.Suppose we have three modules in
application ,so in this application three struts-config.xml
files are there.
But the thing is you must enter those struts-config.xml
files details in deployment descripter (i.e. web.xml)
| Is This Answer Correct ? | 12 Yes | 1 No |
What is struts-default package and what are it’s benefits?
What is the purpose of @beforeresult annotation?
How do u provide security to ur project?(Banking domain project)
What is lookupdispatchaction?
What is the naming convention for a resource bundle file in struts2?
How to carryout the validations in struts if the validator frame work cant handle the validation
How to get data from the velocity page in a action class?
What does i18n interceptor?
What are the two different types of validations that the validator framework supports?
How many struts config file can be created in struts?
What are result types in struts?
Hai all.Can i develope Struts action class without execute(-,- ,-,-)method.Ifd it's possible plz provide some sample code.