• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts2 Beginner

 
Poo Dats
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9256
9
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic