Sunday, August 30, 2009

Struts 2 + Spring 2 + JPA + AJAX

For those who wish to have an Eclipse Project for "quickstart" project of Struts 2 + Spring 2 + JPA + AJAX, here is the link.

quickstart.zip(Filefactory.com)

I have resolved most of the dependencies using following versions
1. Struts 2.0.11. I was not able to get Struts 2.1 jars working with this project
2. Spring 2.0.8
3. Hibernate 3
4. To resolve "org.hibernate.persistence" dependency, hibernate-all.jar is required
5. Jboss archive jar dependency resolved by jboss-common-core.jar from JBoss dist.

Tested with Tomcat 6, MySQL 5.1. You will have to crate a database "quickstart" and the person table. DB settings can be changed in datasource config in applicationContext.xml.

CREATE TABLE 'quickstart'.'Person' ( 'id' INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
'firstName' VARCHAR(45) NOT NULL, 'lastName' VARCHAR(45) NOT NULL, PRIMARY KEY('id'))ENGINE = InnoDB;

Let me know your comments/feedback.

HTH,
byteB

11 comments:

Anonymous said...

It's an awesome article for all the online visitors; they will take benefit from it I am sure.
Also see my website > open your scottrade account now!

Anonymous said...

Hi, Neat post. There is a problem along with your website in web explorer, might test this?
IE nonetheless is the marketplace chief and a huge section
of other people will leave out your magnificent writing due to this problem.
Also visit my webpage : seo consulting services

Anonymous said...

bookmarked!!, I like your website!
Feel free to visit my webpage ; how to Buy penny stocks online

Anonymous said...

Excellent site you have here but I was curious about if you knew of any forums that cover the same topics discussed here?

I'd really love to be a part of group where I can get responses from other knowledgeable people that share the same interest. If you have any suggestions, please let me know. Thanks!
Feel free to visit my website :: Online payday loans arizona

Anonymous said...

Pretty section of content. I just stumbled upon your website and in accession capital
to assert that I acquire actually enjoyed account
your blog posts. Anyway I'll be subscribing to your augment and even I achievement you access consistently rapidly.
Here is my webpage ; on line usa casino

Anonymous said...

Wonderful blog! I found it while browsing on Yahoo News.

Do you have any tips on how to get listed
in Yahoo News? I've been trying for a while but I never seem to get there! Appreciate it
My site: online casino slots for real money

Anonymous said...

First off I would like to say awesome blog! I had a quick question that I'd like to ask if you do not mind. I was interested to know how you center yourself and clear your thoughts prior to writing. I have had a hard time clearing my mind in getting my thoughts out there. I do take pleasure in writing but it just seems like the first 10 to 15 minutes are wasted just trying to figure out how to begin. Any ideas or tips? Thanks!
My web page : usa online casino

Anonymous said...

Yesterday, while I was at work, my cousin stole my iPad and tested to see if it can survive a 40
foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views.
I know this is entirely off topic but I had to
share it with someone!
Stop by my web site - binary options

Anonymous said...

each time i used to read smaller articles or reviews which also clear their motive, and that
is also happening with this post which I am reading now.
Here is my web site : slots online for real money

Anonymous said...

I visit daily some blogs and websites to read articles or reviews, however this website presents feature based
posts.
Also see my web page - play slots for money online

Anonymous said...

Howdy, i read your blog occasionally and i own a similar one
and i was just wondering if you get a lot of spam responses?
If so how do you protect against it, any plugin or anything you can suggest?

I get so much lately it's driving me mad so any assistance is very much appreciated.

Here is my blog post ... armitron watches