GeekInterview.com
Series: Subject: Topic:

Struts Interview Questions

Showing Questions 1 - 20 of 110 Questions
First | Prev | | Next | Last Page
Sort by: 
 | 

Please anybody send the abbreviation of struts? This is the question I have faced in the interview?

Asked By: rajesh | Asked On: Aug 10th, 2006

Answered by: jagadeesh on: Apr 16th, 2014

Struts is framework software,framework means commonly,repeatedly occurred a problems through out a project,using struts framework we can develop only web based applications.

Answered by: geeksterrahul on: Aug 3rd, 2009

Struts: Means Parts or Components(say for eg:Automobile parts).

Struts framework as such, is a skelteon framework made of different parts(M,V,C).


Is action class is servlet or not ? If yes why ?

Asked By: enjoy | Asked On: Apr 2nd, 2007

Answered by: PS on: May 17th, 2013

No.. Action class is not a servlet. The only servlet class in plain struts framework (without spring etc.) is ActionServlet.

Answered by: GK on: Oct 7th, 2012

No. the Struts action class neither extend any class nor implement any interface. More over it has defined one method getServlet() .. discribes which servlet it associated with it. This will be Acti...

How to perform unit testing on web application?

Asked By: Sridhar Reddy | Asked On: Nov 21st, 2012

What is cactus?

Why servlet is used as controller ?Not JSP? I want complete explation?

Asked By: khalid_it | Asked On: Nov 6th, 2006

In struts servlet control the application and we know that a JSP compiled into a servlet first. The only problem with the servlet is that it needs to write out.Println call per HTML line. But as a controller in struts servlets do not force the programmers to write out.Println, that is the part of JSP...

Answered by: anil on: Nov 19th, 2012

Servlets are meant to carry out the dynamic work. If we put Servlet to View rather than as controller, it holds so many server resources, unnecessary creation of Request and Response objects that makes the Server to have unnecessary burden.

Answered by: Amandeep Bhatia on: May 22nd, 2012

If JSP is used as controller,it will be violated MVC architecture of web based applications.Since as per MVC pattern JSP is for VIEW and servlet is for controller.

Can I have more than one struts-config.XML file for a single struts application?

Asked By: Suresh.M | Asked On: Sep 4th, 2006

Answered by: GK on: Oct 7th, 2012

Yes. In web.xml we can define as follows


action
org.apache.struts.action.ActionServlet

config
/WEB-INF/struts-config.xml,/WEB-INF/struts-my-config.xml,

2

Answered by: ABHAY RAI on: Aug 28th, 2012

Yes,You have more than one struts-config file in one single struts application.

In which pattern does all the action classes in the struts are organized

Asked By: sudhakar | Asked On: Nov 3rd, 2005

Please post the answer

Answered by: Saorabh Maheshwari on: Jul 6th, 2012

Command Design Pattern.

Answered by: rajandeepvij on: Oct 25th, 2009

Struts controller uses the command design pattern and the action classes use the adapter design pattern. The process() method of the RequestProcessor uses the template method design pattern. Strut...

How you will handle errors and exceptions using struts

Asked By: Interview Candidate | Asked On: Jul 15th, 2005

Answered by: Dadaso V. pawar on: May 21st, 2012

To handle errors server side validation can be used using ActionErrors classes can be used. or If you need to handle an exception in a specific way for a certain action you can use the exception-mapp...

Answered by: nitesh on: Nov 10th, 2011

we can handle exception in two ways declarative exception & programmatic exception handling

Struts actionservlet

Asked By: khadarzone | Asked On: Apr 14th, 2008

Why do we have only one actionservlet in struts?(asked in polaris interview for Java experienced people , on april 11, chennai)

Answered by: pradeep simhadri on: May 15th, 2012

ActionServlet acts as a controller in Struts 1.x,Structs is a Mvc2 architecture based web-framework, According to MVC2 there must be only one Controller in our app,

Answered by: swapnil on: Oct 1st, 2011

We can configure many servlets, pls check it.

Multiple struts-config.XML files

Asked By: javidn | Asked On: Jan 10th, 2012

In struts, for what purpose we will be creating multiple struts-config.XML files? Can anyone help me out?

Answered by: sampra on: Apr 3rd, 2012

Yes we can have mutilple config files ..this will be good for modulariazaion

Answered by: Ashish on: Mar 30th, 2012

Struts Modules allow a team to logically separate their segment of a single application into the "sub-Web" application . In such a case , each sub-web part will have its own struts-config.xml file. e....

What we will define in struts-config.XML file. And explain their purpose

Asked By: Interview Candidate | Asked On: May 8th, 2005

Answered by: pradeepkmr18 on: Jun 7th, 2008

These are the tags we can define

<data-sources/>
<form- beans/>,
<global- forwards/>,
,
,
<message-resources>,
<switch-action>
<plug-in/> 

Answered by: Sony V George on: Apr 4th, 2007

We can say like soul of struts is Struts-config.xml.The server will read struts-config.xml once only on the time of server starting. so server will know how and where to re-route to each and every req...

Difference between struts 1.X and struts 2.X

Asked By: siva2baba | Asked On: Apr 10th, 2008

What is the difference between struts 1.X and struts 2.X

Answered by: krishna on: Sep 29th, 2011

struts1:: It uses abstract classes rather than interfaces. struts2:: It provides a base ActionSupport class that implements commonly used interfaces like ( Action, ServletResponseAware, ServletReques...

Answered by: Deva on: Jul 26th, 2011

1. Struts 2 is Action based framework, where as in struts 1.2 its control based.
2. There is ActionForm concept in struts 2.0
3. In struts 2 configuration file renamed to struts.xml from struts-config.xml
4. introduced interceptors instead of request processor.
5. Easy to configure.

What are the core classes of struts?

Asked By: Interview Candidate | Asked On: Jul 12th, 2005

Answered by: v.prathibha on: Sep 23rd, 2011

Actionform, Actionclass, ActionMapping, ActionForwrd, Action Errors.

Answered by: devabscmca on: Jul 31st, 2010

The core class of struts framework is
1) ActionServlet
2) Action
3) ActionForward
4) ActionMapping
5) ActionErrors
6) RequestProcessor
7) ActionForm

Struts application in rad error

Asked By: Gouthami | Asked On: Jul 21st, 2011

I am trying to run the struts application in rad using websphere application 6.1 but its not working its giving as error: there is no action mapped for namespace / and action name . - [unknown location] at com.Opensymphony.Xwork2.Defaultactionproxy.Prepare(defaultactionproxy.Java:178) at org.Apache.Struts2.Impl.Strutsactionproxy.Prepare(strutsactionproxy.Java:61) at...

Answered by: ankurpremi on: Aug 30th, 2011

Have you mapped the default action in struts.xml?

How to add multiple .Property files in sturts-config.XML file..?

Asked By: Rafi | Asked On: Oct 17th, 2006

If any one knows the answer plz add..

Answered by: Vani.Y on: Aug 14th, 2011

By assigning a key attribute to each property file,while configuring in struts configuration file.

Answered by: VIRAT REDDY on: Jul 30th, 2011

By configuring in struts config file as follows:

Code
  1. <struts-config>
  2.     <form-beans>
  3.                -------------------------
  4.                 ----------------------------
  5. </form-beans>
  6. <action-mappings>
  7.     --------------------
  8.        ----------------------
  9. </action-mappings>
  10. <message-resources parameter="name of prop file1"/>
  11. <message-resources parameter="name of prop file2"/>
  12. ------------------------
  13. --------------
  14. -
  15. </struts-config>

What is the diffrence between apache struts and jakarta struts ?

Asked By: avneesh1983 | Asked On: Apr 11th, 2006

Answered by: abdul khalik on: May 11th, 2006

both are same

Answered by: Sharad on: Apr 25th, 2006

They are the same

Explain about token feature in struts

Asked By: Interview Candidate | Asked On: Jul 8th, 2005

Answered by: VK on: Jun 15th, 2007

Tokens are used to prevent multi click problem in struts. In Action class method at the begining of the code, need to call the saveToken() that generates an unique identifier for the "request ur...

Answered by: krish on: Oct 26th, 2006

In classes we will write the Tocken code

What is struts

Asked By: Interview Candidate | Asked On: Sep 7th, 2005

Answered by asreeni on 2005-04-08 03:24:40: the core of the struts framework is a flexible control layer based on standard technologies like Java servlets, Javabeans, resourcebundles, and XML, as well as various jakarta commons packages. Struts encourages application architectures based on the model...

Answered by: vana_mlk on: Jul 2nd, 2010

I worked with struts it completely MVC base. I used SHINE pattern. It is a MVC base too. Actually it is an open source project to implement J2EE application.

Answered by: satyanandr on: Sep 11th, 2009

Apache Struts is a frame work build on several design patterns like MVC, FrontController, Factory, Singleton etc., It is most suitable framework to develop web based applications, because  this f...

Explain all tyes of action classes in struts

Asked By: har_5047 | Asked On: Jun 20th, 2010

Answered by: adroitsandeep on: Sep 2nd, 2010

Forward Action
Include action
Dispatch Action
Lookup Dispatch Action

Answered by: Amitabha Roy on: Jun 21st, 2010

1.       Action2.       ForwardAction3.       IncludeAction4.       DispatchActi...

Struts 2 framework

Asked By: snjy85 | Asked On: Apr 7th, 2009

What are the advantages and disadvantages of struts 2 framework?

Star Read Best Answer

Editorial / Best Answer

Answered by: tirumurugan

View all answers by tirumurugan

Member Since Jun-2009 | Answered On : Jun 25th, 2009

Advantages of struts

1. Centralized file-based configuration
2. Form beans.
3. Bean tags.
4. HTML tags
5. Form field validation
6. Consistent approach.

Disadvantages of struts

1. Bigger learning curve
2. BAD documentation
3. Less transparent
4. Rigid approach.

Answered by: lwpro2 on: Oct 1st, 2010

1. no need coding action forms
2. can be any method
3. action name can contain place holders
4. interceptors
5. value stacks
6. thread safe

compared to struts 1

Answered by: tirumurugan on: Jun 25th, 2009

Advantages of struts

1. Centralized file-based configuration
2.
Form beans.
3. Bean tags.
4. HTML tags
5. Form field validation
6.
Consistent approach.

Disadvantages of struts

1. Bigger learning curve
2.
BAD documentation
3. Less transparent
4. Rigid approach.

Struts framework

Asked By: jeenjustin | Asked On: Jul 30th, 2008

Why we use struts framework in project?

Answered by: mani.sivapuram on: Feb 15th, 2011

Generally in any project we should use any design pattern to make project success. So many people find some sort of problems in their design but atlast they provide one solution to those common probl...

Answered by: vinaymudgil007 on: Feb 3rd, 2011

Benifits of using struts framework are [these are the reasons we should use struts]:-(1) Its based on MVC architecture [MVC-2 to be specific] and brings a clear line of demarkation between Controller ...

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.