| Author |
Know any good beginner tutorials that incorporate a database
|
Matt Kohanek
Village Idiot
Ranch Hand
Joined: Apr 04, 2009
Posts: 483
|
|
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?
|
True wisdom is in knowing you know nothing - Socrates
|
 |
Ankit Garg
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9189
|
|
|
Checkout this site...
|
SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
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?
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Matt Kohanek
Village Idiot
Ranch Hand
Joined: Apr 04, 2009
Posts: 483
|
|
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
Joined: Oct 29, 2001
Posts: 8259
|
|
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.
|
 |
 |
|
|
subject: Know any good beginner tutorials that incorporate a database
|
|
|