Logo F2FInterview

Struts Interview Questions

Q   |   QA

Actions in Struts are POJO , is also considered as a Model. The role of Action are to execute business logic or delegate call to business logic by the means of action methods which is mapped to request and contains business data to be used by the view layer by means of setters and getters inside the Action class and finally helps the framework decide which result to render

Most of the trivial work are made easier to achieve for example automatic form population. Intelligent configuration and defaults for example you can have struts.xml or annotation based configuration and out of box interceptors can provide facilities that a common web application needs Now Struts2 can be used anywhere in desktop applications also, with minimal or no change of existing web application,since actions are now POJO.POJO actions are even easier to unit test.Thanks to interceptors Easier UI and validation in form of themes and well known DOJO framework. Highly plugable,Integrate other technologies like Spring,Hibernateetc at ease. Ready for next generation RESTFUL services

A ValueStack is a place where all the data related to action and the action itself is stored. OGNL is a mean through which the data in the ValueStack is manipulated.

Yes

struts.devMode is a key used in struts.properties file (Can also be configured in struts.xml file as ) , to represent whether the framework is running in development mode or production mode by setting true or false. If set to development mode, it gives the following benefits : - Resource bundle reload on every request; i.e. all localization properties file can be modified and the change will be reflected without restarting the server. struts.xml or any configuration files can be modified without restarting or redeploying the application The error occurs in the application will be reported, as oppose to production mode. Also remember that struts.devMode should be marked as false in production environment to reduce impact of performance. By default it is “false”.

In order to link this F2FInterview's page as Reference on your website or Blog, click on below text area and pres (CTRL-C) to copy the code in clipboard or right click then copy the following lines after that paste into your website or Blog.

Get Reference Link To This Page: (copy below code by (CTRL-C) and paste into your website or Blog)
HTML Rendering of above code: