hi,

I too have same setup like you,
You can use JNDI to locate datasource, configure your datasource in tomcat's
server.xml,
and write your JNDI code in your bean. it will be easy & better way :)

regards,
Virupaksha





----- Original Message -----
From: "Vic Cekvenich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 4:24 AM
Subject: Re: Database with struts


> I disagree.
> DataSource should not be used, you should use a DAO, for example
iBatis.com.
>
> .V
>
> Gurpreet Dhanoa wrote:
> > hi
> >
> > You have to Configure DataSource and then u can get the refernce of the
same
> > it in the ACtion and can use it
> >
> > Regards
> > gary
> > ----- Original Message -----
> > From: "Divya B Sridhar" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, December 04, 2003 7:03 PM
> > Subject: Database with struts
> >
> >
> >
> >>Hi all,
> >>I am trying to do a database connectivity using struts.
> >>Actually, the database resides on another machine and I have tomcat
> >>running on my local machine.
> >>The other machine is a linux box(a linux machine) which has the database
> >>installed(PostgreSQL).
> >>So, apart from the <data-sources> tags to be specified in the
> >>struts-config.xml file, the Action class containing the Connection and
> >>the queries, what other configuration is required. Any ideas on this?(I
> >>mean to ask the other steps required in order that a simple sample
> >>database example with struts works - drivers etc. Any input is welcome)
> >>Thanks in advance,
> >>
> >>Regards,
> >>Divya.
> >>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to