s jar file to my projec's lib directory and I copied
taglibs-dbtags.tld to WEB-INF
2) These lines were added to web.xml:
DB Connection
jdbc/SZTGKR
javax.sql.DataSource
Container
/WEB-INF/dbtags.tld
/WEB-INF/taglibs-dbtag
y few resources online on how to set up database handling in Struts.
Here's how I set it up (if it helps...)
1) I added mysql driver's jar file to my projec's lib directory and I copied
taglibs-dbtags.tld to WEB-INF
2) These lines were added to web.xm
d I copied
taglibs-dbtags.tld to WEB-INF
2) These lines were added to web.xml:
DB Connection
jdbc/SZTGKR
javax.sql.DataSource
Container
/WEB-INF/dbtags.tld
/WEB-INF/taglibs-dbtags.tld
3) And I used the connection i
eptember 13, 2005 8:24 AM
To: Struts Users Mailing List
Subject: Re: Struts to Postgresql db connection refused
On 9/13/05, David G. Friedman <[EMAIL PROTECTED]> wrote:
> Raj,
>
> Have you double checked that you can reach it from the command line on the
> server BEFORE trying it
ED]
> Sent: Tuesday, September 13, 2005 8:00 AM
> To: user@struts.apache.org
> Subject: Struts to Postgresql db connection refused
>
>
> Hi,
>
>
> When I connect Struts to Postgresql 8.0 database using DataSource object I
> get the following error messages:
>
> Sour
> psql -Upostgres -d omsdb -h 192.168.1.22 -p 5432
>
> Thanks
> Raj
>
>
>
> From: Adrian Maier [mailto:[EMAIL PROTECTED]
> Sent: Tue 9/13/2005 5:24 AM
> To: Struts Users Mailing List
> Subject: Re: Struts to Postgresql db connection
I tried this command it works:
psql -Upostgres -d omsdb -h 192.168.1.22 -p 5432
Thanks
Raj
From: Adrian Maier [mailto:[EMAIL PROTECTED]
Sent: Tue 9/13/2005 5:24 AM
To: Struts Users Mailing List
Subject: Re: Struts to Postgresql db connection refused
On 9
It works fine with command line. I could connect to the db and query.
Thanks
Raj
From: David G. Friedman [mailto:[EMAIL PROTECTED]
Sent: Tue 9/13/2005 5:00 AM
To: Struts Users Mailing List
Subject: RE: Struts to Postgresql db connection refused
Raj,
Have
ED]
> Sent: Tuesday, September 13, 2005 8:00 AM
> To: user@struts.apache.org
> Subject: Struts to Postgresql db connection refused
>
>
> Hi,
>
>
> When I connect Struts to Postgresql 8.0 database using DataSource object I
> get the following error messages:
>
> Sour
e.org
Subject: Struts to Postgresql db connection refused
Hi,
When I connect Struts to Postgresql 8.0 database using DataSource object I
get the following error messages:
Source:
DataSource dataSource = null;
try {
dataSource = getDataSource(request);
conn = dataSource.getConne
Hi,
When I connect Struts to Postgresql 8.0 database using DataSource object I get
the following error messages:
Source:
DataSource dataSource = null;
try {
dataSource = getDataSource(request);
conn = dataSource.getConnection();
stmt = conn.createStatement();
String
Hi Raj
While I'm not using Postgresql (MySQL instead) there were a couple of things I
noticed
that you might need to check:
1. You have specified the data source entry in your Struts-config.xml - on my
Tomcat
5.0 I need to enter this in the META-INF/context.xml (I have more on this if
you
You need to add the "-i" switch to postmaster (-o -i to pg_ctl I
think) to enable tcp/ip connections. Please see the PostgreSQL
documentation.
2005/9/8, R Rajendran <[EMAIL PROTECTED]>:
> Hi,
>
> When I connect Struts to Postgresql 8.0 database using DataSource object I
> get the following erro
Hi,
When I connect Struts to Postgresql 8.0 database using DataSource object I get
the following error messages:
Source:
DataSource dataSource = null;
try {
dataSource = getDataSource(request);
conn = dataSource.getConnection();
/* working
Class.forName("org.po
DB connections you have stored in your session.
Note: personally, I'd avoid associating a DB connection with each session
like this, since it will limit how far the application can scale. The
number of users it can support will be limited by the number of database
connections you can cope
Senthilrajan VS a écrit :
Hi Stéphane Zuckerman,
Thanks for your response. Can u please tell me how can I close the
connection if the user close the window directly because I am not maintain
any session in the window
These are two unrelated events : you want a client-side event to create
a s
;Struts Users Mailing List"
Sent: Monday, July 25, 2005 5:34 PM
Subject: Re: DB Connection
Vijay K Anand a écrit :
> hi
>
> How to share the saem db connection across user requests..without
> exhausitn the connection pool.
>
> regards
> Vijay
You could create a plugin t
Vijay K Anand a écrit :
hi
How to share the saem db connection across user requests..without
exhausitn the connection pool.
regards
Vijay
You could create a plugin that connects to the Database when launching
the webapp, then put the handler in the servlet context. Then you could
hi
How to share the saem db connection across user requests..without
exhausitn the connection pool.
regards
Vijay
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Hi Amit,
Yes,the mail reached me.
Thanks
Uma
-Original Message-
From: Amit Gupta [mailto:[EMAIL PROTECTED]
Sent: Monday, December 27, 2004 9:49 AM
To: Struts Users Mailing List
Subject: RE: DB Connection Best practice
I sent you message in separate mail on Friday. Have you got that
AM
To: Struts Users Mailing List
Subject: RE: DB Connection Best practice
Hi Amit,
Would appreciate if u can forward the same msg again to me too. As i am also a
struggler i also might need it
Thanks,
Manisha
Amit Gupta <[EMAIL PROTECTED]> wrote:
Hi Uma,
I use DBCP for this. Refer my m
g same to you on your personal ID.
-Original Message-
From: uma.k [mailto:[EMAIL PROTECTED]
Sent: Friday, December 24, 2004 10:20 AM
To: 'Struts Users Mailing List'
Subject: DB Connection Best practice
Hi,
I wanted to insert a record into the database or
update a record in the d
7;
Subject: DB Connection Best practice
Hi,
I wanted to insert a record into the database or
update a record in the database or
get a record from the database.
Where do I make my database connection? Is it in the Action class? Can I
make a single java class handle all of that for me?
If the above
Thanks Sunny,
I will do that.
Uma
-Original Message-
From: Sunny [mailto:[EMAIL PROTECTED]
Sent: Friday, December 24, 2004 10:27 AM
To: Struts Users Mailing List
Subject: Re: DB Connection Best practice
Better practice would be delegating to a "handler" (application layer)
Better practice would be delegating to a "handler" (application layer)
class and let it return data in form of some bean and use that in action.
In this way you'll be isolating Controller from Business model.
uma.k wrote:
Hi,
I wanted to insert a record into the database or
update a record in th
Hi,
I wanted to insert a record into the database or
update a record in the database or
get a record from the database.
Where do I make my database connection? Is it in the Action class? Can I
make a single java class handle all of that for me?
If the above are wrong. Please let me know which is
26 matches
Mail list logo