What is difference between mvc1 architecture and mvc2 architecture?
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...
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?
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.
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.
we should write two action tags in config file
How to create DAO class? How to use DAO class in struts action class?
directly we can call from Action class , Dao class ref .methods
in my project dao class methods are called from Action class
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...
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.
How can we call one action class method from another action class?
Using SwitchAction With DTO Disign patterns we can access it.
What is struts tag library?
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)
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...
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?
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.
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...
Can we config more than one struts-config.XML files in 2ee? If yes, how?
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
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.
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.
How can we enable and disable the validators in struts framework
With appropriate changes in Struts-config file.. you have to enable the validator as true.
What is "model" work in mvc architecture and what is business logic?
"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?
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.
You can create a WAR file of ur application and then u can use the websphere's hot deployment method to deploy ur application.
Where do we call ejb in struts?
We can call EJB in struts using Service Locator Design Patern
What is share point ?How it works?Need of it?Hardware and software requirements ?
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...
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...
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.
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.
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?
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.
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...
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 ?
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 ...