Re: how to define a datasource in struts?

2001-08-21 Thread BinhMinh Nguyen

Here it is. Hope it helps.
in struts-config:


  
  
 
 
 
 
 
 
 
 
 
   
  
  


in java code:

fnDataSource =
(DataSource)(getServlet().getServletContext().getAttribute(Action.DATA_SOURCE_KEY));



Binh Minh Nguyen

--- Satyan Nair <[EMAIL PROTECTED]> wrote:



> Hi everyone,
> i m new to struts.. if anyone can tell me where to
> find the archive of the
> mailing lists then the problems already discussed
> won't come again and
> again...
> anyway i would like to know how to define datasource
> in struts... i tried
> using the example given with struts... but i must be
> missing something to be
> configured.. i configured the struts-config.xml
> file... for defining the
> datasource... but it gives me ActionMapping
> errors...
> 
> take care everyone
> 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: how to define a datasource in struts?

2001-08-21 Thread Rakesh

http://www.mail-archive.com/struts-user%40jakarta.apache.org/


 Rakesh Ayilliath
(Software Engineer)

Synergy IT Innovations Pvt Ltd,
#196, 1st Floor, 9th Cross,
HMT Layout, RT Nagar
Bangalore 560032

[EMAIL PROTECTED]

- Original Message -
From: "Satyan Nair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 10:17 PM
Subject: how to define a datasource in struts?


> Hi everyone,
> i m new to struts.. if anyone can tell me where to find the archive of the
> mailing lists then the problems already discussed won't come again and
> again...
> anyway i would like to know how to define datasource in struts... i tried
> using the example given with struts... but i must be missing something to
be
> configured.. i configured the struts-config.xml file... for defining the
> datasource... but it gives me ActionMapping errors...
>
> take care everyone
>
>



Re: how to define a datasource in struts?

2001-08-21 Thread Bar³omiej Paw³owski

Hi,
You can do it like that:
  

  
  
  
  
  
  
  
  

  

Bartek
Poland

Satyan Nair wrote:

> Hi everyone,
> i m new to struts.. if anyone can tell me where to find the archive of the
> mailing lists then the problems already discussed won't come again and
> again...
> anyway i would like to know how to define datasource in struts... i tried
> using the example given with struts... but i must be missing something to be
> configured.. i configured the struts-config.xml file... for defining the
> datasource... but it gives me ActionMapping errors...
>
> take care everyone