GeekInterview.com
Series: Subject: Topic:

Struts FAQ

Showing Questions 1 - 20 of 56 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

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...

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.

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.

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

Sharepoint server

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

What is share point ?How it works?Need of it?Hardware and software requirements ?

Answered by: vasu253 on: Jun 25th, 2008

share point is a portal collebration software, used to develop collection of site in a single site, need for share point is it can handle very huge amount of data where it is not possible for any webs...

What are struts properties?

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

Answered by: muralisqa on: Jun 6th, 2008

Hi Guys,This is Krishna. As per my knowledge struts properties is new concept introduced in struts 2.0. its a file with name struts.properties. In this file we can specify wat is the resource bundle w...

Answered by: surekha on: Jun 5th, 2007

Struts have central controller. we can saperate the business logic. server side validation is there. Open frame work.

How to set email notification using struts.Plz give the example code.

Asked By: asuhbav | Asked On: Sep 12th, 2006

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

Using struts you dont have the built in facility like sending email u have to use java mail API or ur can switch to spring framework use ur struts application in there and also get the facility to send email.

Answered by: g4java on: Aug 17th, 2007

Struts doesn't provide EMAIL support. You may need to switch to SPRING / use the javaMail API in your action and get it done :)

Is it necessary to have an actionform in struts framework for any web application?

Asked By: shanthu | Asked On: May 6th, 2007

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

It is not necessary to have ActionForm in the struts application if you are not using a form in ur html or jsp page but its is handy to have one if ur are submitting some data to the server using form.

Answered by: AnandKarthick on: Sep 11th, 2007

It is mandatory to have an action form for a form submission and not required for link forward for example if we use  <html:link action="logout"> Click here to Log out </html:l...

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.