This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Spring and the fly likes Need sample source skeleton Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Need sample source skeleton" Watch "Need sample source skeleton" New topic
Author

Need sample source skeleton

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Dear Folks,

Can someone kindly point me to where I can get a simple sample code skeleton to do the following please?

I need a Java server program to send and receive HTTP messages via a servlet/JSP to retrieve and update data items in a MySQL database. I need to do this in Eclipse, Spring and Hibernate and run it in Tomcat.

I followed different examples but none had gotten me all the way thru using all of the above technologies.

Any sample skeleton would be greatly appreciated.

Many Thanks...
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18709
    
    8

I count eight different technologies in that list. Face it, you aren't going to get a simple code skeleton for that.
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Mimi Tam wrote:I followed different examples but none had gotten me all the way thru using all of the above technologies.

This implies you made some progress. Which particular technology did you get stuck on? What was the error message?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Thank you so much for your follow-up Jeanne.

I was working with a Spring 2.5 program that uses *.do files for rendering and also Hibernate 2.x. Both Spring and Hibernate were of older version and gave me all sorts of problems. I couldn't find a Spring 3.0 and Hibernate 3 sample problem that runs on Eclipse (without Maven) that will allow me to use as a template to start written my own working code.

When I got the Spring MVC portion working, my Hibernate code didn't work ... and vice versa. It has been most disconcerting.

I looked everywhere in the Internet to find a sample skeleton that will give me Spring 3.0 MVC, Hibernate 3 and *.jsp for presentation - a combination I need but I couldn't find any. I am not using Maven....

If someone can give me a working project/src skeleton using Spring 3.0 MVC and Hibernate 3.0 in the simplest fashion...that will be most helpful for me.....

Many Thanks...
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30789
    
157

Mimi,
I recommend starting slower. First see if you can create a Spring MVC application to output "hello world." This will show you have spring set up correctly. Then look at a Hibernate tutorial and add Hibernate. Alternatively,get a book that covers both Spring and Hibernate.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need sample source skeleton