Struts Interview Questions
Here we are going to see some important struts framework interview questions and answers which is mostly asked in advanced java or j2ee interviews.
Let's see one-by-one java struts interview questions and answers.
public static final String SUCCESS = "success"
Visit for more java interview Questions, link given below
Servlet Interview Questions.
JSP Interview Questions.
OOPS Interview Questions.
Top 10 Java Coding Interview Questions.
Here we discussed some most important Struts interview questions and answers in java. It will be useful to you.
Let's see one-by-one java struts interview questions and answers.
(1) What is Struts?
Struts is a framework which is used to create java based web application by using MVC design pattern.
Struts framework is an open source framework and extends servlet API.
(2) Which packages Struts framework use?
Struts framework use some package for developing web application e.g Java Servlets, Java Beans, XML, ResourceBundle, Jakarta packages.
(3) What is MVC?
MVC(Model View Controller) is a design pattern by using this we can design and develop the web application.
Model represents the data and business logic.
View used for presentation of the model.
Controller It takes the input from the user and acts as an interface between model and view.
(4) What are the components of Struts?
There are 3 main components of the struts framework which is used to develop web applications and these are given below.
Model(java file) for containing state and business logic.
View(html, jsp, etc file) for presentation.
Controller(Servlet or Filter) for handling request from the users.
(5) What is an Interceptor in Struts?
Interceptor is an object which provides the preprocessing and postprocessing logic before and after the action is called.
(6) What is a Configuration file in Struts?
Configuration file is a file in struts where we define action class component and view components and Interceptor also.
(7) What is struts.xml?
Struts framework provide struts.xml file which is called configuration file for mapping of an action class component and view components.
(8) What is multi-configuration in Struts?
In Struts, multi-configuration means we can use more than one .xml file for mapping e.g first.xml and second.xml, struts.xml but we have to define first.xml and second.xml in struts.xml configuration file.
(9) What is Value Stack?
Value stack contains application objects like action and other model objects.
(10) What is ActionInvocation?
It holds the action and interceptor and invokes the action.
(11) Can we create own interceptors in Struts?
Yes, We can create own interceptors in struts framework.
(12) How to create own or custom interceptors in Struts?
We can create own or custom interceptor in java struts framework by implementing Interceptor interface.
(13) What is POJO?
POJO(Plain Old Java Object) class is simple a action class(java class).
(14) What is the role of Action class?
An action class act as an adapter between the contents of an incoming request and the corresponding business logic that should be executed to process this request.(15) What is ActionSupport?
In struts, ActionSupport is a class which implements Action, Validateable, Serializable etc interfaces and overrides execute() method of Action interface.(16) What is Action?
Action is an interface with execute() method and 5 constants which is given below.
public static final String ERROR = "error"
public static final String LOGIN = "login"
public static final String INPUT = "input"
public static final String NONE = "none"
In Struts , execute() method is used for business logic in action class.(17) Why use execute() method?
(18) What is Zero Configuration?
Zero configuration means there is no need of configuration files like struts.xml etc. It is possible by using annotation or naming convention.(19) What are the classes used as part of Struts framework?
There are some classes used in struts e.g Action Servlet, Action Class, Action Form, Action Mapping, Action Forward.(20) What validate() and reset() method does?
Both methods are defined in the form bean. Validate method is used to validate the request parameter and reset method clear the action form data members.Visit for more java interview Questions, link given below
Servlet Interview Questions.
JSP Interview Questions.
OOPS Interview Questions.
Top 10 Java Coding Interview Questions.
Here we discussed some most important Struts interview questions and answers in java. It will be useful to you.
Great post for java struts interview questions. Nice article.good job.
ReplyDeleteGreat Article android based projects
DeleteJava Training in Chennai Project Center in Chennai Java Training in Chennai projects for cse The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training
Keep up the good work. Your blog is very informative and helpful. Waiting for more posts.
ReplyDeletejava training
ReplyDeleteHi Your Blog is very nice!!
Get All Top Interview Questions and answers PHP, Magento, laravel,Java, Dot Net, Database, Sql, Mysql, Oracle, Angularjs, Vue Js, Express js, React Js,
Hadoop, Apache spark, Apache Scala, Tensorflow.
Mysql Interview Questions for Experienced
php interview questions for freshers
php interview questions for experienced
python interview questions for freshers
tally interview questions and answers
codeingniter interview questions
cakephp interview questions
express Js interview questions
react js interview questions
laravel Interview questions and answers
GREAT BLOG I ALWAYS LOVED YOUR BLOG.
ReplyDeleteJAVA COURSE IN GURGAON
short term job oriented courses after graduation
ReplyDelete100% job guarantee course
professional courses with job placement
100% job guarantee courses after b tech
training with guaranteed job after
guaranteed it job after training
job oriented courses after graduation
The Java Programming Language A Detail Introduction in Bullet Points
ReplyDeleteNice informative post...Thanks for sharing..ServiceNow Training in Hyderabad
ReplyDeleteThis is one awesome blog article. Much thanks again core Java online training Bangalore
ReplyDeleteNice article, thank you.
ReplyDeleteFor java interview programs visit: Java programming
Excellent information. Thanks for sharing this helpful article.
ReplyDeleteDevops Online Training
Nice Article Following one is Thymeleaf which is also a good option to develop web apps.
ReplyDeletehttps://javaexp.blogspot.com/2019/03/spring-boot-with-thymeleaf-example.html
Your content is very impressive and thanks for sharing this article. its very useful.
ReplyDeletejira certification
job support from india
ReplyDeleteReally this is a very useful blog.
Thank you
thanks for sharing.this blog is informative
ReplyDeletejava training in velachery
Change the keywords
Thanks for sharing this informative blog java training in chennai
ReplyDeleteExcellent post, must say thanks for the information you added to this post. I appreciate your post and looking forward for more.
ReplyDeletejava training in mumbai
java course in mumbai
data science training in mumbai
data science course in mumbai
You've made some good points there. I looked on the internet for additional information about the issue and found most people will go along with your views on this website.
ReplyDeleteJava Training in Bangalore
Advanced Java Training in Bangalore
Thanks for sharing the blog, seems to be interesting and informative too.
ReplyDeleteapp development company in bhopal
Pretty! This was a really wonderful post. Thank you for providing these details.
ReplyDeleteadvanced java training institutes in bangalore
advanced java training in bangalore
best advanced java training institutes in bangalore
advanced java training course content
advanced java training interview questions
advanced java training & placement in bangalore
advanced java training center in bangalore
Thank you for taking the time to provide us with your valuable information.
ReplyDeleteBest seo company in chennai
Web design company in chennai
mobile app design company in chennai
Excellent post, must say thanks for the information you added to this post. I appreciate your post and looking forward for more. and you want to see java projects then visit this page java projects
ReplyDelete
ReplyDeleteNice and excellent post. Very well explained. Thanks for the information...
DevOps Training in Bangalore | Certification | Online Training Course institute | DevOps Training in Hyderabad | Certification | Online Training Course institute | DevOps Training in Coimbatore | Certification | Online Training Course institute | DevOps Online Training | Certification | Devops Training Online
Tula's International School is known to be one of the residential school and best boarding school in India The school is affiliated with Central Board of Secondary Education (CBSE) and has been awarded with numerous accolades in the field of education.
ReplyDeleteTula's International School Boarding School in India
I value the blog post.Really looking forward to read more. Really Cool.
ReplyDeleteOracle ADF online online training
Oracle Apps funcational online online training
Oracle Apps technical online online training
Oracle BPM online online training
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
ReplyDeleteOracle Java Certifications
Oracle Java Tutorials and Materials
https://www.btreesystems.com
ReplyDeleteaws training in chennai
Python training in Chennai
data science training in chennai
hadoop training in chennai
machine learning training chennai
Nice, but may i know how we do this?
ReplyDelete5 Instant Approval Site (DoFollow Backlink)
Thanks, this is generally helpful.
ReplyDeleteStill, I followed step-by-step your method in this
dot net training online india
.net online training hyderabad
Thanks for sharing such a good and informative content to all of us
ReplyDeleteWorkday Online Integration Course
Workday Online Integration Course in India
Pretty! This was a really wonderful post. Thank you for providing these details. Orcale [sql&pl\sql] Training Institute In Bangalore | Tally Erp 9 Training Institute In Bangalore | Ms Access Training Institute In Bangalore
ReplyDeleteTula's International School is the best Dehradun boarding schools for girls & boys. It is one of the top schools in Dehradun.The school is affiliated to CBSE which offers holistic education to students.
ReplyDeleteTula's International School Best Boarding School in Dehradun
Really you have been shared very informative post. before i read this blog i didn't have any knowledge about this but now i got some knowledge. so keep on sharing such kind of an interesting blogs.
ReplyDelete.net online training hyderabad
Visit us: dot net training
Very interesting blog.Thanks for sharing.
ReplyDeleteVisit us: ui path online training
Visit us: uipath training in hyderabad
Visit us: ui path course in bangalore
Struts Interview Questions Answers
ReplyDeleteExcellent information provided by you through this post. I follow all the mentioned information.If you are looking for Interview Questions and answers website then you can visit Just Crack Interview, here you will find interview questions and answers for developer, software engineer, bankers etc.
ReplyDeleteAt Digital Marketing Thanks for this amazing content.
ReplyDeleteAt Digital Marketing Thanks for this amazing content.
ReplyDeleteNice article | It was very useful for me. I have founded more details about Salesforce Online Training
ReplyDelete.net online training
dot net online training hyderabad
Thanks for such a great article here. Magento 2 Development Company
ReplyDelete