GeekInterview.com
Series: Subject: Topic:

Struts FAQ

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

Explain about struts control flow?

Asked By: suri_veeru | Asked On: Mar 8th, 2006

Answered by: laxman on: Dec 11th, 2012

I think there is no service method in ActionServlet class it inherit it from httpServlet class but again I dont see any
call to process method of RequestProcessor ?

Answered by: vadamalaiganesh on: Jun 5th, 2007

Hi,    The explanation given by parindia is crystal clear But not Formatted thatt why looks messy,I have formatted it,Wonderful parindia ,You are really expert.  1) When ...

What is difference between mvc1 architecture and mvc2 architecture?

Asked By: ravi | Asked On: Oct 4th, 2005

Answered by: narendrakumar on: Oct 4th, 2012

For small scale projects use MVC1 for large scale projects use MVC2 Because In MVC1 both view and controller implemented in servlets In MVC2 view implemented in JSP and controller impl...

Answered by: Zahid Nasim on: Jul 20th, 2011

Raja Shekhar is given a good difference between MVC1 and MVCII.

See In short,

MVC1 (Model 1) = JSP as "V" and "C", JavaBean as "M"
MVC2 (Model 2) = Servlet as "C", JSP as "V", JavaBean as "M"

How many types of action clases are there in stuts?Their uses?

Asked By: suman | Asked On: May 25th, 2006

Answered by: prasanth on: Nov 24th, 2011

i think in struts1.x we are having 7 action classes

1.DispatchAction
2.ForwardAction
3.IncludeAction
4.MappingDispatchAction
5.LocalAction
6.SwitchAction
7.LookupDispatchAction

and i don't know about ActionDispatcher.

Answered by: nandana on: Jul 19th, 2011

there are 9 action classes are there
1.action
2.dispatch action
3.mapping dispatch action
4.lookup dispatch action
5.include action
6.forward action
7.switch action
8.locate action
9.download action

How to declare in struts-config file when we write two actions in one application.

Asked By: naggeek | Asked On: Jul 26th, 2007

Answered by: mohan on: Oct 7th, 2011

we should write two action tags in config file

Create DAO class

Asked By: aloksharma2k8 | Asked On: Jan 31st, 2009

How to create DAO class? How to use DAO class in struts action class?

Answered by: ramakrishna on: Oct 3rd, 2011

directly we can call from Action class , Dao class ref .methods

in my project dao class methods are called from Action class

Insert and retrieve images

Asked By: soft.javed | Asked On: Dec 3rd, 2010

How to insert and retrieve images in struts through MySQL database and how to get path of image (or file) from local system?

Is struts thread safe?

Asked By: sivanand | Asked On: Apr 5th, 2006

Answered by: lwpro2 on: Oct 1st, 2010

Struts is a framework, wrap around servlet. As servlet is not thread safe, struts actions is not either. For struts 1, it's not thread safe. For struts 2 if integrate with spring, not thread safe. for...

Answered by: kranthi kumar on: Apr 20th, 2006

as struts is a collection of clasess and interfaces u can't make whole framework as a singlethread.if u can make individual components jsp(view) and servlet(controller) as threadsafe.

Action class method

Asked By: kainattu | Asked On: Sep 16th, 2010

How can we call one action class method from another action class?

Answered by: pandu0134u on: Oct 6th, 2010

Using SwitchAction With DTO Disign patterns we can access it.

Struts tag library

Asked By: b.sruthi86 | Asked On: Aug 19th, 2010

What is struts tag library?

Answered by: sapanindia on: Aug 23rd, 2010

A Tag Library is a set of useful tags packaged and distributed together which help web application developers accomplish related tasksThere are five tag libraries available with Struts 1.1. Struts-htm...

Dispatch action class

Asked By: kainattu | Asked On: Aug 2nd, 2010

How can we call one method from one dispatchaction to another dispatch action class?

What is struts frame work architecture(with diagram)

Asked By: REDDY | Asked On: Mar 26th, 2006

Answered by: rutujaD on: Jul 18th, 2010

Struts represents an implementation of MVC type 2 architecture. The most important components of Struts are the ActionServlet, Action, and ActionForm subclasses. ActionServlet represents the controlle...

Answered by: Nath on: Sep 25th, 2006

Hello friend,Plz see this following linkhttp://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.htmli too learnt from this itselfbyecontact me at kynathk@yahoo.co.in

What is difference between the mvc1 and mvc2 design pattern?

Asked By: kirankumar | Asked On: Sep 24th, 2005

Answered by: Sathishchandra on: May 13th, 2010

Main difference is:
in MVC1 design pattern view and controller elements are implemented using servlets.
in MVC2 design pattern view is implemented using JSP and controller is implemented using servlets.

Answered by: rasahere on: Jul 8th, 2009

MVC1 was a first generation approach that used JSP pages and the JavaBeans component architecture to implement the MVC architecture for the Web. HTTP requests are sent to a JSP page that implements Co...

Struts config file

Asked By: ammineni.vasu | Asked On: Mar 18th, 2010

Can we config more than one struts-config.XML files in 2ee? If yes, how?

Answered by: anjubhaskar on: May 4th, 2010

Yes. We can configure more than one struts- config.xml file.But we have to mention the path of all struts-config files in the web.xml file.Just like this... <init-param> <param-name>...

When you have a GLobal forward and a local forward in struts-config.Xml, which one will be called

Asked By: Giridhar | Asked On: Jun 28th, 2007

Answered by: Kola.Nareshreddy on: Nov 19th, 2009

By default precedence is given to the local forward. Global forward is like global and available always, but if you don't want that global forward then very well you have to add a local forward. It's just like Local and Global variables.


Answered by: muvvalasrinu on: May 28th, 2009

Local Forwards always override Global Forward names. So for example, if you have a Global Forward with the name shoppingCart and a local Forward with the same name, the local Forward takes priority. If a local Forward can not be found then Struts will try to find the same name among Global Forwards.

Form beans

Asked By: subhani_syed | Asked On: Sep 4th, 2009

How to evaluate all the form beans that are available in our application, whether or any of the form bean returns validation errors?

Enable and disable validators

Asked By: praveenmasthan | Asked On: Aug 29th, 2009

How can we enable and disable the validators in struts framework

Answered by: anoophp_777 on: Sep 1st, 2009

With appropriate changes in Struts-config file.. you have to enable the validator as true.

Loigc iterator

Asked By: praveenmasthan | Asked On: Aug 29th, 2009

Explain what is logic iterator?

Sturts business logic

Asked By: sunny singh012 | Asked On: Apr 2nd, 2009

What is "model" work in mvc architecture and what is business logic?

Answered by: samuelravikumar on: Apr 20th, 2009

"Model" is one of the parts in MVC II Arichitecture. It mainly contains the business logic which interacts with Database and retrieves/stores the data.

Sam.T

How to deploy struts application in weblogic?

Asked By: Kalpana | Asked On: Nov 23rd, 2007

Answered by: Rudra_java on: Jan 14th, 2009

1st you create a war file of your application.
Then start the weblogic server.

Then open the browser & write the url of weblogic in the address bar of the browser.

Then enter your user name & password.
In the browser u got a deploy option.

You give the path of your war file.

Answered by: Hur Muhammad on: Mar 10th, 2008

You can create a WAR file of ur application and then u can use the websphere's hot deployment method to deploy ur application.

Calling ejb in struts

Asked By: raghuprasad | Asked On: Feb 7th, 2008

Where do we call ejb in struts?

Answered by: tsraju8 on: Dec 9th, 2008

We can call EJB in struts using Service Locator Design Patern

First | Prev | | Next | Last Page

 

 

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

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.