27Dec/0831
CRUD Application : Struts 1, Hibernate and MySQL
Here is my Sample Struts, Hibernate CRUD application. This can act as starting point for those who are starting to build applications on hibernate and struts. I know struts 1 is sort of out dated, but i still think there are lot of legacy applications running on Struts 1.
This application has the following features.
- Basic Create, Update and Delete Operations
- Security (Login Support)
- Validation (Struts Validations)
- Internationalization and Localization (Look at the Links on the top of page, you can change the language of the application).
- Ant build script to build and deploy the application.
Download the source code leadapp.zip (5.66 Mb)
Building and deploying the application
- Create a schema/user using the schema.sql file in src/database
- Open build.properties and modify "tomcat.home" property to point your tomcat home directory
- Database username/password can be configured in the hibernate config file \WebRoot\WEB-INF\hibernate.cfg.xml
- Issue "ant clean deploy" command to build and deploy the application to tomcat.
- Access the application http://localhost:8080/leadapp (assuming tomcat is running on 8080 port)
- username/password is user@javachap.com/javachap
I hosted this application on stax.net, access it from here http://hw4999.dvkvarma.staxapps.net, please write in the comments section if you have any problems running the application.
Application Screenshots
Advertisement
Shared from Google Reader
- Griffin Releases iPhone-Controlled Toy Helicopter
- Hackers Are Climbing In Your Windows, So Hide Your Kids, Hide Your Files
- Woz reflects on how a musician taught Jobs the art of making technology human
- Obedient wives club!
- Welcome To The Future: Polymer Vision Demos SVGA Rollable Screen
- Plugin by C. Murray Consulting
Recent Posts
- 6th Grader and iPhone Application Developer
- The 5 Biggest Ways to Boost MySQL Scalability
- Enumeration Mapping in Hibernate
- Java 7′s Fork/Join Framework
- Understanding Java Weak References
Recent Comments
- vicky on How to make VOIP calls on iPhone using MagicJack Connection and Siphon
- ravish on Vodafone India – GPRS for iPhone without Data Plan
- ravish on Vodafone India – GPRS for iPhone without Data Plan
- ravish on Vodafone India – GPRS for iPhone without Data Plan
- Sandeep on Vodafone India – GPRS for iPhone without Data Plan
Blogroll
Tags
centos
cloud
crud
cydia
database
datasource
debugging
dwr
eclipse
erd
ermaster
gprs
greatandhra
hibernate
humor
install
iPhone
iSip
ldap
Linux
magicJack
mediawiki
modelling
movie
mysql
online
openldap
permalinks
plugin
reference
rss
schema
seo
siphon
source
spring
storage
struts
theme
Top Menu
twitter
voip
wordpress
yahoo
yui


