Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Craig R. McClanahan
Wolfgang Woger wrote: Craig R. McClanahan wrote: Philipp Röthl wrote: That's not really what I would like to do. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throw

Re: AW: AW: Looking up the Struts Datasource

2003-10-19 Thread Wolfgang Woger
Craig R. McClanahan wrote: Philipp Röthl wrote: That's not really what I would like to do. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SomeBe

Re: AW: AW: Looking up the Struts Datasource

2003-10-17 Thread Craig R. McClanahan
Philipp Röthl wrote: That's not really what I would like to do. public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { SomeBean myBean = new SomeBean(); }

AW: AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
EMAIL PROTECTED] Cc: Betreff: Re: AW: Looking up the Struts Datasource you've tried the configuration detailed in the struts faqs? http://jakarta.apache.org/struts/faqs/database.html public ActionForward

Re: AW: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: AW: Looking up the Struts Datasource Date: Fri, 17 Oct 2003 20:01:39 +0200 Ben, thanks for your answer. But the DS I would like to get is the Struts DS. The one I defined in the

AW: Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
prüngliche Nachricht- Von: Ben Anderson [mailto:[EMAIL PROTECTED] Gesendet: Fr 17.10.2003 16:22 An: [EMAIL PROTECTED] Cc: Betreff: Re: Looking up the Struts Datasource It depends on the container as to how you put the datasourc

Re: Looking up the Struts Datasource

2003-10-17 Thread Ben Anderson
ctx = new InitialContext(); DataSource ds = (DataSource)ctx.lookup(dsName); From: Philipp Röthl <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Looking up the Struts Datasource Date: Fri, 17 Oct 2003 15

Looking up the Struts Datasource

2003-10-17 Thread Philipp Röthl
Hi, I've implemented a struts application that uses JavaBeans which perform the whole business logic. These beans access an Oracle DB. The datasource is passed from the action classes to the bean classes as a parameter. Now I have to implement a WebService that does the same as the Struts Appli