Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Know any good beginner tutorials that incorporate a database

 
Matt Kohanek
Village Idiot
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • 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?
 
Ankit Garg
Sheriff
Posts: 9519
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checkout this site...
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 484
Java jQuery Oracle
  • Mark post as helpful
  • send pies
  • 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
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic