KyaPoocha.com

Huge Collection of Interview Questions


‘Struts Interview Questions’ - KyaPoocha.com

In struts why we use jsp as view( presentation)? what happen if we use servlet as view? 

JSPs are more towards the J2EE line. In a large jsp applications, lot of java script , css(cascaded sytle sheet) , lot of more thing are applied, with the actual... Read more »

In struts what happens if made any changes in actionservlet? 

The ActionServlet plays the role of controller wich is responsible for handling the request and selecting the correct Application Module and storing ApplicationConfig... Read more »

In struts why we use jsp as presentation layer? can we use servlet as presentation layer? 

no we can not use servlet as a presentation layer in struts even though jsp converted as servlet at the back.bcos we can seperate presentation and business logic... Read more »

what r the disadvantages of struts? 

Few Disadvantage are mentioned in the below link. Struts have disadvantages mainly on performance of the application. Especially when using advanced tag like nested-loop... Read more »

how can container will know this is a struts application? 

in the web.xml you have to put the servlet entry(org.apache.struts.action.ActionServlet)  which is nothing but action servlet. So each request will be handled... Read more »

what is diff. between MVC1 and MVC2? 

Model1: In model1 we have only one controller either jsp/servlet for receiving request,validate the data,populatedata,prepare responce and send back to client.Here... Read more »

What is the difference between ForwardAction and IncludeAction? 

ForwardAction Provides a mechanism for forwarding to a specified URL.Whereas IncludeAction Provides a mechanism for including the contents of a specified URL.  Read more »

what is the difference between struts 1.0 and struts 1.1 

In struts 1.1 we use execute() while in struts 1.0 we use perform(), another point is in 1.1 the application module is introduced as for using multiple modules instruts-config... Read more »

How can we communicate from struts to ejb? 

strut frame work have Action class. This Action class contain execute() method.this method interact with model……your model code maybe in EJB/JDBC/Hibernate…….u... Read more »

How can we write more than formbean in Action class? 

we can use the dynaactionForm instade of only formbeans . the dynaactionform is framework class provided by the apache struts. Using this perticular class we do... Read more »

What are the Actions in Struts? 

Struts framework provides us some inbuilt action classes like FORWARD ACTION, INCLUDE ACTION, DISPATCH ACTION, LOOKUPDISPATCH ACTION AND SWITCH ACTION  Read more »

why servlet is used as controller ?not JSP? i want complete Explation? 

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... Read more »

What is switch action & forwardAction in struts ? 

Switch action is used to navigate/move from one module to other module in struts, where as forward Action is used is used to navigate/move within same module  Read more »

Is Action class is Servlet or Not ? if yes why ? 

In Struts1, Action Servlet is a servelet (since it extends HTTPServle) but Action class extents org.apache.struts.action.Action which has nothing to do with Servlet. In... Read more »

What is the return type of DAO in Struts? 

Struts does not bind the programmer till the DAO layer. You can have anything you like, as the return type (valid in programming construts, of course) for the DAO... Read more »

Page 2 of 7«12345»...Last »