Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

Search: 

  Tutorial: Jakarta Struts Interview Questions

Jakarta Struts Interview Questions Jakarta Struts Interview Questions Q: What is Jakarta Struts Framework? A: Jakarta Struts is open source implementation of MVC (Model-View-Controller) pattern for the development of web based applications.

Tutorial Details:

Jakarta Struts is robust architecture and can be used for the development of application of any size. Struts framework makes it much easier to design scalable, reliable Web applications with Java.
Q: What is ActionServlet?
A: The class org.apache.struts.action.ActionServlet is the called the ActionServlet. In the the Jakarta Struts Framework this class plays the role of controller. All the requests to the server goes through the controller. Controller is responsible for handling all the requests.
Q: How you will make available any Message Resources Definitions file to the Struts Framework Environment?
A: 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:

Q: What is Action Class?
A: The Action Class is part of the Model and is a wrapper around the business logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic. To use the Action, we need to Subclass and overwrite the execute() method. In the Action Class all the database/business processing are done. It is advisable to perform all the database related stuffs in the Action Class. The ActionServlet (commad) passes the parameterized class to Action Form using the execute() method. The return type of the execute method is ActionForward which is used by the Struts Framework to forward the request to the file as per the value of the returned ActionForward object.
Q: Write code of any Action Class?
A: Here is the code of Action Class that returns the A ctionForward object.
TestAction.java
package roseindia.net;
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 response) throws Exception{
return mapping.findForward( "testAction" );
}
}
Q: What is ActionForm?
A: 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.
Q: What is Struts Validator Framework?
A: 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 validate the form data on the client browser. Server side validation of form can be accomplished by sub classing your From Bean with DynaValidatorForm class.
The Validator framework was developed by David Winterfeldt as third-party add-on to Struts. Now the Validator framework is a part of Jakarta Commons project and it can be used with or without Struts. The Validator framework comes integrated with the Struts Framework and can be used without doing any extra settings.
Q. Give the Details of XML files used in Validator Framework?
A: 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 bean.
Q. How you will display validation fail errors on jsp page?
A: Following tag displays all the errors:

Q. How you will enable front-end validation based on the xml in validation.xml?
A: The tag to allow front-end validation based on the xml in validation.xml. For example the code: generates the client side java script for the form "logonForm" as defined in the validation.xml file. The when added in the jsp file generates the client site validation script.


 

Rate Tutorial:
http://www.roseindia.net/interviewquestions/jakartastrutsinterviewquestions.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Jakarta Struts Interview Questions

View Tutorial:
Jakarta Struts Interview Questions

Related Tutorials:

Displaying 1 - 50 of about 624 Related Tutorials.

Jakarta Struts Interview Questions
Jakarta Struts Interview Questions Jakarta Struts Interview Questions       ...;       Q: What is Jakarta Struts
 
Collection of Large Number of Java Interview Questions!
; The Jakarta Struts Interview Questions   ...; Struts Interview Questions -3   ... Java Interview Question,Interview questions Java,Java Interview,Questions
 
Interview Questions - Large Number of Java Interview Questions
; The Jakarta Struts Interview Questions   ...; Struts Interview Questions -3   ... Java Interview Question,Interview questions Java,Java Interview,Questions
 
Interview Questions - Large Number of Java Interview Questions
; The Jakarta Struts Interview Questions   ...; Struts Interview Questions -3   ... Java Interview Question,Interview questions Java,Java Interview,Questions
 
Struts Tutorials - Jakarta Struts Tutorial
Struts Tutorials - Jakarta Strut Tutorials,Struts,Struts Example,Struts Code... - Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get Trained Now!!! This complete reference of Jakarta Struts shows you how
 
Struts Interview Questions
Struts Questions,Struts Interviw,Struts Interview Questions Struts Interview Questions    ... setup Apache Struts to use multiple configuration files? Answer: Yes Struts can
 
Interview Questions - Struts Interview Questions
Interview Questions - Struts Interview Questions Interview Questions - Struts Interview Questions  ... application. In struts framework the controller responsibilities are implemented
 
JSP Interview : JSP Interview Questions -2
JSP Interview Questions JSP Interview : JSP Interview Questions -2       ...;      Page of the JSP Interview Questions
 
JSF Interview Questions
JSF Interview Questions JSF Interview Questions...;   Collection of JSF (Java Server Faces) Interview Questions. JSF Interview Question JavaServer Faces (JSF) is an application
 
Jakarta Struts & Advanced JSP Course
Jakarta Struts & Advanced JSP Course Jakarta...;        Jakarta Struts Training... Servlets Basic XML Jakarta Struts
 
Servlet Interview Questions
Servlet Interview,servlet questions,Servlet Interview Questions,Servlet Servlet Interview Questions  ...; Collection of large number of Servlet Interview Questions. These questions
 
Servlet Interview Questions
Servlet Interview,servlet questions,Servlet Interview Questions,Servlet Servlet Interview Questions  ...; Collection of large number of Servlet Interview Questions. These questions
 
Ask Struts Questions Online
Ask Struts Questions Online Ask Struts Questions... traditionally known as Jakarta Struts has become Apache in 2005 after coming...;     Apache Struts is a standard open source
 
Difficult Interview Questions
Common Interview Questions Difficult Interview... opportunity will be enhanced.  Difficult Interview Questions... Interview Questions - Page 2    Question : Why
 
Difficult Interview Questions
Common Interview Questions Difficult Interview... opportunity will be enhanced.  Difficult Interview Questions... Interview Questions - Page 2    Question : Why
 
Struts Books
; The Jakarta Struts Model 2 architecture and its supporting components ..., Resource Bundles, and XML, as well as various Jakarta Commons packages. Struts... to learn Struts and want get started really quickly? Get Jakarta Struts Live for free
 
Core Java Interview Questions!
Core Java Interview Questions! Core Java Interview Questions                     
 
Beginner to advance guide to the Apache Struts
Struts Tutorials - Jakarta Strut Tutorials,Struts,Struts Example,Struts Code... - Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get Trained Now!!! This complete reference of Jakarta Struts shows you how
 
Interview Questions and Answers
Interview Questions and Answers Interview Questions... popular interview questions and some possible ways to answer them. Please remember... saw some popular interview questions and some ways to tackle them. Let us finish
 
Common Interview Questions Page -2
Common Interview Questions Page -2 Common Interview Questions Page -2        ... that every job applicant faces. Here are certain tips to tackle interview questions
 
Struts Links - Links to Many Struts Resources
Links - Links to Many Struts Resources Jakarta Struts Tutorials One of the Best Jakarta Struts available on the web. Struts Tutorials - Jakarta Struts Tutorial This complete reference of Jakarta Struts shows you how
 
Struts Links - Links to Many Struts Resources
Links - Links to Many Struts Resources Jakarta Struts Tutorials One of the Best Jakarta Struts available on the web. Struts Tutorials - Jakarta Struts Tutorial This complete reference of Jakarta Struts shows you how
 
Servlet Interview Questions - Page 2
Servlet Interview Questions - Page 2,Servlet Interview,servlet questions,Servlet Interview Questions,Servlet Servlet Interview Questions... pattern (request pattern). For example in case of Struts *.do url patterns
 
Common Interview Questions
Common Interview Questions Common Interview... common interview questions the interviewer is likely to ask as such as: tell me...; Common Interview Questions - Page 1 Tell Me a Little About Yourself? Ans
 
Common Interview Questions
Common Interview Questions Common Interview... common interview questions the interviewer is likely to ask as such as: tell me...; Common Interview Questions - Page 1 Tell Me a Little About Yourself? Ans
 
Design patterns interview questions
Common Interview Questions Design patterns interview questions        ... patterns interview questions1 A pattern is a proven (and recurring
 
Design patterns interview questions
Common Interview Questions Design patterns interview questions        ... patterns interview questions1 A pattern is a proven (and recurring
 
Struts Reference
Struts Reference,Online Reference Struts,Jakarta Struts Reference,Reference Struts Struts Reference Welcome to the Jakarta Online Reference page, you will find everything you need to know to quick
 
Java Interview Questions - Page 1
Java Interview Questions,interview questions java Java Interview Questions - Page 1     ...;         Java Interview
 
Common Interview Questions and Their Answers.
Common Interview Questions and Their Answers (1-25) Common Interview Questions and Their Answers.  ... to implement them in your next interview. The questions and answers given here
 
Struts Tutorials
Struts Tutorials - Jakarta Struts Tutorial This complete reference of Jakarta... JavaBoutique article "Coding your second Jakarta Struts Application", and prepare.... Coding your second Jakarta Struts Application Did the title of the article make
 
Struts Guide
will learn how to develop robust application using Jakarta Struts Framework... the Jakarta Struts Framework. What is Struts? Struts Frame work... is maintained as a part of Apache Jakarta project and is open source. Struts Framework
 
Welcome to the Apache Struts Tutorial
Struts Tutorials - Jakarta Strut Tutorials,Struts,Struts Example,Struts Code... - Jakarta Struts Tutorial Struts1 Examples Struts 2 Training! Get Trained Now!!! This complete reference of Jakarta Struts shows you how
 
Struts Book - Popular Struts Books
Programming Jakarta Struts As popular as the Struts Framework.... O'Reilly's Programming Jakarta Struts was written by Chuck Cavaness after his...; Professional Jakarta Struts The Apache Software Foundation's Jakarta Struts remains
 
Common Interview Questions Page -3
Common Interview Questions Page -3 Untitled Document Common Interview Questions Page -3    ... information related to the position you are attaining the interview. If you don’t
 
Difficult Interview Questions Page -1
Difficult Interview Questions Page -1 Difficult Interview Questions Page -1       ... ? Answer: Whenever you go for the interview, most probably this is the first
 
JSF Interview Questions
JSF Interview Questions JSF Interview Questions...;   Collection of JSF (Java Server Faces) Interview Questions. JSF Interview Question JavaServer Faces (JSF) is an application
 
Struts Tutorials
Struts Tutorials - Jakarta Struts Tutorial This complete reference of Jakarta... JavaBoutique article "Coding your second Jakarta Struts Application", and prepare.... Coding your second Jakarta Struts Application Did the title of the article make
 
Struts IDEs
pattern provided by the Jakarta Struts framework. Eclipse features... Struts IDEs Struts IDEs Easy Struts for Eclipse / Jbuilder The Easy Struts project provides plug-ins
 
Struts IDEs
pattern provided by the Jakarta Struts framework. Eclipse features... Struts IDEs Struts IDEs Easy Struts for Eclipse / Jbuilder The Easy Struts project provides plug-ins
 
Java Interview Questions
Java Interview Questions,interview questions java Java Interview Questions - Page 7                  
 
Java Interview Questions 3
Java Interview Questions,interview questions java Java Interview Questions page 3                  
 
Easy Struts
on the MVC design pattern provided by the Jakarta Struts framework. Easy Struts... Easy Struts Easy Struts...;         The Easy Struts project
 
JSF Interview Questions
SF Interview Questions   JSF Interview Questions                      
 
JSF Interview Questions
SF Interview Questions   JSF Interview Questions                      
 
JSF Interview Questions
SF Interview Questions   JSF Interview Questions                       
 
JSF Interview Questions
SF Interview Questions   JSF Interview Questions                      
 
Struts Guide
will learn how to develop robust application using Jakarta Struts Framework... the Jakarta Struts Framework. What is Struts? Struts Frame work... is maintained as a part of Apache Jakarta project and is open source. Struts Framework
 
Session Related Interview Questions
what is session,what is session tracking,session tracking,Session Related Interview Questions Session Related Interview Questions           
 
JSF Interview Questions
SF Interview Questions   JSF Interview Questions                      
 
Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.