• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts2 Beginner

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??


:-(
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic