aspose file tools*
The moose likes Struts and the fly likes Struts2 Beginner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Beginner " Watch "Struts2 Beginner " New topic
Author

Struts2 Beginner

Poo Dats
Greenhorn

Joined: Feb 01, 2013
Posts: 2
Hello all,

i am newbie to struts..
i have developed one application without any framework, using jsp n servlets only.. but now i m supposed to develop the same using struts2 framework.
finding it very difficult. i have gone through many tutorials but still not able to clear confusions.

in earlier development, i had used one servlet for one action. like for every insert form there was one servlet. i have 5-6 forms for inserting, update, delete.
but now i am supposed to use only one servlet for every action/CRUD operation. But then where to add sql queries ?? inside Java bean/ Dao ??

should i directly try for struts2 ??
How to use servlets in struts2 ?
why to use DAO ?
All actions in struts are DAO ??
what is DTO ??


:-(
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8910
    
    8

Poo Dats wrote:
should i directly try for struts2 ??


Struts 1 and Struts 2 are very different frameworks. Unless you have some reason to learn Struts 1, I recommend strongly you use with Struts 2.

Poo Dats wrote:
How to use servlets in struts2 ?


You don't use servlets in Struts. You create Actions to handle requests.

Poo Dats wrote:
why to use DAO ?


Data Access Object is a common pattern in object-oriented programming.

Poo Dats wrote:
All actions in struts are DAO ??


No. Actions deal with front-end logic (what processes a request, where to forward the user next). DAO's deal with the details of storage and creating data objects

Poo Dats wrote:
what is DTO ??


Data Transfer Object

Our Struts FAQ has many links to tutorials and other resources that may help you get started.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 Beginner