Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2008

Tip: Looking for answers? Try searching our database.

Struts 1.3 and Hibernate

Thread view: 
kate@katefalconer.co.uk - 12 Mar 2008 11:15 GMT
Hello,

I am creating my first web application using Struts 1.3 and Hibernate
in Eclipse. Everything is going reasonably well so far and I have all
the setup complete and I am doing some of my basic functionality such
as login using (jsp -> actionform -> action). However I have a query
about 'best practice', when creating common methods for my users (such
as hashing passwords, checking whether a user exists, formatting
results etc) and where these should go, i.e whether I should create a
pojo for Users, whether this should implement/extend a pre-created
hibernate class (such as users.java, abstractUsers.java or
UsersDAO.java), or whether I should just store them in my Action
Classes and call the class whenever I need to use this method.

Many Thanks
Kate
Arne Vajhøj - 17 Mar 2008 03:38 GMT
> I am creating my first web application using Struts 1.3 and Hibernate
> in Eclipse. Everything is going reasonably well so far and I have all
[quoted text clipped - 7 lines]
> UsersDAO.java), or whether I should just store them in my Action
> Classes and call the class whenever I need to use this method.

In my world:

JSP - presentation layer
action - control layer
what you are talking about - business layer
Hibernate data classes - data access layer

I think you need something between you action classes and
your Hibernate data classes.

Arne


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.