Search

Useful Links

Sunday, July 3, 2011

Struts Interview Questions

Q:  How to get data from the velocity page in a action class?
A: We can get the values in the action classes by using data.getParameter(\"variable name defined in the velocity page\");

Q:  How you will display validation fail errors on jsp page?
A: Following tag displays all the errors:



Q: How you will make available any Message Resources Definitions file to the Struts Framework Environment?
A: T Message Resources Definitions file are simple .properties files and these files contains the messages that can be used in the struts project. Message Resources Definitions files can be added to the struts-config.xml file through tag.

Example:

.
 

No comments:

Post a Comment