• 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

Know any good beginner tutorials that incorporate a database

 
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just looking for an easy struts tutorial that uses a database. I have found some on roseindia, but I really dislike those there. They always seem to use outdated and bad programming principles.

I am just looking for one that is a little more up to date and ideally uses myeclipse.

Any suggestions?
 
Sheriff
Posts: 9708
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Checkout this site...
 
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

Matt Kohanek wrote: I have found some on roseindia, but I really dislike those there. They always seem to use outdated and bad programming principles.



You aren't the only one
Since Struts is a front-end controller and database activity is in the back end, it makes sense to separate the two. Have you done database work before? Are you looking at using plain JDBC or something like EJB's or Hibernate?
 
Matt Kohanek
Village Idiot
Posts: 484
jQuery Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Joe Ess wrote:

Matt Kohanek wrote: I have found some on roseindia, but I really dislike those there. They always seem to use outdated and bad programming principles.



You aren't the only one
Since Struts is a front-end controller and database activity is in the back end, it makes sense to separate the two. Have you done database work before? Are you looking at using plain JDBC or something like EJB's or Hibernate?



I have done minimal database work before. If I were to find a tutorial going over the basics I am sure I could make it work. I have been working on a project to do this already but for some reason I am not connecting to the database. It would be JDBC, something basic like a database that I could add new users to would be perfect. Just a login page, and a new user registration page and a loginSuccess page are all I am trying to accomplish

edit - I read that article on blogspot, good stuff. I did a tutorial by balusc a few years ago and it is what helped me to learn jsp and jsf. If balusc has a tutorial for what I need I should try to find that because he always makes things very clear
 
Joe Ess
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
What you should probably do is go through the JDBC tutorial so you feel comfortable with that. Then work through a few of the Struts 2 Tutorials.
As I mentioned before, Struts is a front-end controller. It doesn't really inform one how to set up the back end so you are free to do it any way you want. The typical pattern is a Data Access Object which handles all those ugly database calls for your application.
 
reply
    Bookmark Topic Watch Topic
  • New Topic