Category Archives: Structs Interview Questions

Do I have to credit Struts on my own website? | Structs Questions

You need to credit Struts if you redistribute your own framework based on Struts for other people to use. (See the Apache License for details.) But you do not need to credit Struts just because your web application utilizes the … Continue reading

Posted in Structs Interview Questions | Leave a comment

Why is it called Struts? | Structs Questions

It’s a reference to struts in the architectural sense, a reminder of the nearly invisible pieces that hold up buildings, houses, and bridges.

Posted in Structs Interview Questions | Leave a comment

Who wrote Struts? | Structs Questions

There are several active committers to the Struts project, working cooperatively from around the globe. Dozens of individual developers and committers contributed to the Struts 1.x codebase. All interested Java developers are invited to contribute to the project. Struts is … Continue reading

Posted in Structs Interview Questions | Leave a comment

Is Struts compatible with other Java technologies? | Structs Questions

Yes. Struts is committed to supporting industry standards. Struts acts as an integrator of Java technologies so that they can be used in the “real world”.

Posted in Structs Interview Questions | Leave a comment

How does Struts work? | Structs Questions

Java Servlets are designed to handle requests made by Web browsers. Java ServerPages are designed to create dynamic Web pages that can turn billboard sites into live applications. Struts uses a special Servlet as a switchboard to route requests from … Continue reading

Posted in Structs Interview Questions | Leave a comment

Why do we need Struts? | Structs Questions

Java technologies give developers a serious boost when creating and maintaining applications to meet the demands of today’s public Web sites and enterprise intranets. Struts combines Java Servlets, Java ServerPages, custom tags, and message resources into a unified framework. The … Continue reading

Posted in Structs Interview Questions | Leave a comment

Give the Details of XML files used in Validator Framework? | Structs Questions

The Validator Framework uses two XML configuration files validator-rules.xml and validation.xml. The validator-rules.xml defines the standard validation routines, these are reusable and used in validation.xml. to define the form specific validations. The validation.xml defines the validations applied to a form … Continue reading

Posted in Structs Interview Questions | Leave a comment

What is Struts Validator Framework? | Structs Questions

Struts Framework provides the functionality to validate the form data. It can be use to validate the data on the users browser as well as on the server side. Struts Framework emits the java scripts and it can be used … Continue reading

Posted in Structs Interview Questions | Leave a comment

What is ActionForm? | Structs Questions

An ActionForm is a JavaBean that extends org.apache.struts.action.ActionForm. ActionForm maintains the session state for web application and the ActionForm object is automatically populated on the server side with data entered from a form on the client side.

Posted in Structs Interview Questions | Leave a comment

Write code of any Action Class? | Structs Questions

Here is the code of Action Class that returns the ActionForward object: import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.action.Action; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache.struts.action.ActionMapping; public class TestAction extends Action { public ActionForward execute( ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse … Continue reading

Posted in Structs Interview Questions | Leave a comment