aspose file tools*
The moose likes Struts and the fly likes Struts2 Hibernate3 example, please! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Hibernate3 example, please!" Watch "Struts2 Hibernate3 example, please!" New topic
Author

Struts2 Hibernate3 example, please!

Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
Please!!!
Does anyone have a simple Struts2 Hibernate3 example, I have been trying to THREE DAYS to get a simple 1 page app to work, but everytime I restart it I get yet another error about missing classes from JAR files. There are too many to mention but at last count I had about 30 JARs in my LIB folder which seems massivly excessive!

Does anyone actually develop with this technology because at the moment I have serious doubts about it's ability compared to EJB3.1 & Servlets3 which is what I usually use.

Please does anyone have a link to a simple working example of at the very least a list of the JARs is actually need as this is beyond a joke.

JSF fell flat on it's face when I tried it, seems Struts2/Hibernate3 is going the same way at the moment!

Cheers

KS
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Why not use Maven, which manages library dependencies for you?

A minimal S2 app requires maybe a half-dozen jars. I don't actually know how many jars Hibernate requires; the ORM forum might be a better place to look for that.

Yes, people are using it. People are using JSF, too.
Kevin P Smith
Ranch Hand

Joined: Feb 18, 2005
Posts: 362
OK
Got a simple 1 page Struts2 page thing going, minus the Hibernate (1 step at a time!)

Was just wondering, can you use Annotations for Struts rather than the horrid struts.xml for navigation?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

You might try a different approach when asking questions.

The convention plugin provides both configuration-free and annotaton-driven configuration.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts2 Hibernate3 example, please!
 
Similar Threads
Struts2-spring-hibernet integration jars
struts2
Struts2 Jar Dependencies
DisplayTag + PaginatedList + Struts2
Struts2