AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

MySQL and Cocoon

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases
View previous topic :: View next topic  
Author Message
Nesto
Guest





PostPosted: Mon Jan 19, 2004 11:44 am    Post subject: MySQL and Cocoon Reply with quote



Hi all!

I want to write some code that connects to a database from the Apache
Cocoon servlet, to check authentication data.
I have the user information (in this case username/password and other
info) in a remote MySQL database, for which I have already set a
connection pool in Cocoon (2.1.3).

One possible soution is to writing an action (a cocoon object that
permits the execution of java code) that checks the user parameters
(username/password) provided through a web form, with those stored in
the database. Here the problem, for me, is to write java code that reuse
the connection pool set for other purposes. I have no idea...
How can I retrieve the pool and perform the database queries/update/... ??

Please give some hint, or better (If you can) some code example.

Thank you a lot, and... sorry for my english ;-)

Bye,
Nesto

PS for Cocoon users: I can't use esql, logicsheets at this level, just
Java code inside an action.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java and Databases All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.