Google News
logo
Java Struts - Interview Questions
What is the default location of result pages and how can we change it?
By default Struts2 looks for result pages in {WEBAPP-ROOT}/{Namespace}/ directory but sometimes we want to keep result pages in another location, we can provide struts.convention.result.path constant value in Struts2 configuration file to change the result pages location.
 
Another way is to use @ResultPath annotation in action classes to provide the result pages location.
Advertisement