A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
connecting database through struts
Joined: May 31, 2004
Jun 01, 2004 05:59:00
I heard about connecting database through
1. Action class
2. struts config.xml
i have problem in connecting database through struts as i am relevently new to it. i wanted to
it with my MS Access.
Please help me how to do this
Joined: Nov 07, 2003
Jun 01, 2004 07:03:00
How did you connect?
I have no problem with connecting the DB in Structs.
For simplicity, you can create a
reference in the ActionDispatcher, and connect to the DB by JDBC driver.
If you know a bit about JNDI, you may bind the connection reference to the JNDI, and look it up in the Action method.
What is the problem you actually faced?
SCJP 1.2, OCP 9i DBA, SCWCD 1.3, SCJP 1.4 (SAI), SCJD 1.4, SCWCD 1.4 (Beta), ICED (IBM 287, IBM 484, IBM 486), SCMAD 1.0 (Beta), SCBCD 1.3, ICSD (IBM 288), ICDBA (IBM 700, IBM 701), SCDJWS, ICSD (IBM 348), OCP 10g DBA (Beta), SCJP 5.0 (Beta), SCJA 1.0 (Beta), MCP(70-270), SCBCD 5.0 (Beta), SCJP 6.0, SCEA for JEE5 (in progress)
Joined: Oct 18, 2002
Jun 02, 2004 21:49:00
Expresso (open source) provides much in the way of quickly creating databased applications with Struts integration. The new release Expresso 5.5 now integrates with Struts 1.1. You can find it at
It is sorta covered in the
JavaRanch Style Guide
subject: connecting database through struts
building first shopping cart using struts
Struts 1.1 issue (myEclipse+Jboss 3.2.5+SQL Server 2000)
connecting to Data Base
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014