Re: Anyone Using Struts with JDeveloper9i and/or BC4J?

2002-04-25 Thread Otavio C. Decio

I was trying to do just that. I couldn't figure out how to call Jspc from a
 task, I even tried to use Apply to no avail.

Thanks, this was very helpful!

Otavio

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 8:19 AM
Subject: RE: Anyone Using Struts with JDeveloper9i and/or BC4J?


> Are you using Ant to build?  If so, here's an Ant target that will
> pre-compile your JSPs using the OC4J compiler.  If everything compiles
> correctly, it deletes the files.
>
> 
>
>   
>   
> 
> 
> 
> 
>   
>   
>   
> 
> 
>  failonerror="yes">
>   
>   
> 
>   
>
> 
>
> -Original Message-
> From: Otavio C. Decio [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, April 25, 2002 6:52 AM
> To: Struts Users Mailing List
> Subject: Re: Anyone Using Struts with JDeveloper9i and/or BC4J?
>
>
> Hi Steve,
>
> We rolled our own data access layer, instead of using BC4J. We are being
> successful on building a Struts-based application using JDeveloper
although
> we are still unable to have our project compile JSP's with the newer
> versions of Struts, mainly the Beta1.1. It would be very helpful if you
> could give us a JDeveloper configuration that compiles. I gave up trying
to
> figure out and we are sticking to the version prior to Beta1. For reasons
> that I cannot understand, it (JDeveloper) throws an exception and produces
a
> 0-length java file. I suspect that might have something to do with
Oracle's
> xml parser, Struts requires xerces and I don't know if there is any
> incompatibility. Or I have more JDK's than I should, I need to try to
> install JDeveloper on a clean machine.
>
> Another annoyance (I mean, extremely annoying) is that JDeveloper tries to
> do a syntax check on the file while editing, and most of the time it
shoots
> the CPU to 100% and sits there for about 10 seconds. Until it comes back
you
> can't do anything, such as for example coding. You type some more and
again
> you need to wait. If you add up the time you lose waiting for it to come
> back, it will be hours wasted.
>
> Other than that, it is a good environment for developing apps for OAS.
>
> Regards,
>
> Otavio
>
>
> - Original Message -
> From: "Steve Muench" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Wednesday, April 24, 2002 11:25 AM
> Subject: Anyone Using Struts with JDeveloper9i and/or BC4J?
>
>
> > With our JDeveloper 9.0.2 release nearly out the door,
> > we are feverishly working on new features for our next
> > release (9.0.3).
> >
> > One of these areas is making JDeveloper9i an even better
> > environment to model, code, debug, profile, build,
> > source-control, and deploy Struts applications that
> > work with relational databases.
> >
> > A sub-part of this theme is making our Business Components
> > for Java (BC4J) J2EE framework even easier to plug-in as
> > the Model layer of a Struts application.
> >
> > I'm interested in (offlist or onlist) feedback in what
> > troubles or triumphs people have had trying to use
> > JDeveloper9i and/or BC4J with Struts so that we can
> > fold that feedback into our next product version to
> > polish any existing rough edges.
> >
> > Thanks.
> >
> > __
> > Steve Muench - Developer, Product Mgr, Evangelist, Author
> > Simplify J2EE and EJB Development with BC4J
> > http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
> > Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Anyone Using Struts with JDeveloper9i and/or BC4J?

2002-04-25 Thread Otavio C. Decio

Hi Steve,

We rolled our own data access layer, instead of using BC4J. We are being
successful on building a Struts-based application using JDeveloper although
we are still unable to have our project compile JSP's with the newer
versions of Struts, mainly the Beta1.1. It would be very helpful if you
could give us a JDeveloper configuration that compiles. I gave up trying to
figure out and we are sticking to the version prior to Beta1. For reasons
that I cannot understand, it (JDeveloper) throws an exception and produces a
0-length java file. I suspect that might have something to do with Oracle's
xml parser, Struts requires xerces and I don't know if there is any
incompatibility. Or I have more JDK's than I should, I need to try to
install JDeveloper on a clean machine.

Another annoyance (I mean, extremely annoying) is that JDeveloper tries to
do a syntax check on the file while editing, and most of the time it shoots
the CPU to 100% and sits there for about 10 seconds. Until it comes back you
can't do anything, such as for example coding. You type some more and again
you need to wait. If you add up the time you lose waiting for it to come
back, it will be hours wasted.

Other than that, it is a good environment for developing apps for OAS.

Regards,

Otavio


- Original Message -
From: "Steve Muench" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, April 24, 2002 11:25 AM
Subject: Anyone Using Struts with JDeveloper9i and/or BC4J?


> With our JDeveloper 9.0.2 release nearly out the door,
> we are feverishly working on new features for our next
> release (9.0.3).
>
> One of these areas is making JDeveloper9i an even better
> environment to model, code, debug, profile, build,
> source-control, and deploy Struts applications that
> work with relational databases.
>
> A sub-part of this theme is making our Business Components
> for Java (BC4J) J2EE framework even easier to plug-in as
> the Model layer of a Struts application.
>
> I'm interested in (offlist or onlist) feedback in what
> troubles or triumphs people have had trying to use
> JDeveloper9i and/or BC4J with Struts so that we can
> fold that feedback into our next product version to
> polish any existing rough edges.
>
> Thanks.
>
> __
> Steve Muench - Developer, Product Mgr, Evangelist, Author
> Simplify J2EE and EJB Development with BC4J
> http://otn.oracle.com/products/jdev/htdocs/j2ee_bc4j.html
> Building Oracle XML Apps, www.oreilly.com/catalog/orxmlapp
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ExceptionInInitializerError and others - JDeveloper

2002-03-29 Thread Otavio C. Decio

Hi all,

I keep getting errors when using the latest builds or the Beta 1.1-b1. When
I turn back to a version from January 19, all errors disappear and I can
work. This is very strange and I couldn't figure out what if the problem is
with JDeveloper.

I'd appreciate any suggestions..

Thanks!

Otavio


Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.ExceptionInInitializerError:
org.apache.struts.taglib.logic.EqualTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/FormTag
Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.ExceptionInInitializerError:
org.apache.struts.taglib.html.HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/FormTag
Error: java.lang.ExceptionInInitializerError:
org.apache.struts.taglib.html.BaseFieldTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/FormTag
Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/FormTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/MessageTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/MessageTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/MessageTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/FormTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.ExceptionInInitializerError:
java.lang.NullPointerException
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.ClassFormatError: app.RowTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.ClassFormatError:
org.apache.struts.taglib.html.TextTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/html/HiddenTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/bean/WriteTag
Error: java.lang.NoClassDefFoundError:
org/apache/struts/taglib/logic/EqualTag



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Newbie Question - Please Helpme (Cannot find ActionMapping or...)

2002-03-22 Thread Otavio C. Decio

Just a suggestion, put all the jars that come with struts under your
web-inf\lib directory, including the commons*.

Abracos

Otavio

- Original Message -
From: "Gilson Nascimento D Elrei" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 8:16 AM
Subject: Newbie Question - Please Helpme (Cannot find ActionMapping or...)


> > I'm receiving this error when I try to execute my application
> > (http://localhost:8100/helpdev/jsp/LoginView.jsp) on JRUN.
> >   javax.servlet.jsp.JspException: Cannot find ActionMappings or
> > ActionFormBeans collection
> > I have verified my WEB.XML  and STRUTS-CONFIG.XML files and I didn't
find
> > error.
> > I think that STRUTS doesn't get to find the path for STRUTS-CONFIG.XML.
> > <>  <>
> > Below is my structure directory configuration.
> > HelpDev is my WEBAPP container for my application.
> > HELPDEV
> >  |
> >  +-JSP
> >  |  |
> >  |  .-- LoginView.JSP   <--  Main Program
> >  |  .-- MainMenu.JSP
> >  |
> >  +-WEB-INF:.
> > |
> > +---LIB
> > | |
> > | .--structs.jar
> > | .--xerces.jar
> > | .--jaxp.jar
> > | .--parse.jar
> > |
> > +---CLASSES
> > | |
> > | +---TEST
> > |   |
> > |
> > +--STRUTS
> > |
> > . LoginAction.class
> > |
> > . LoginBean.class
> > |
> > . LoginForm.class
> > |
> > . MessageResources.properties
> >
> > .-- All Structs TLD Files (*.TLD)
> > .-- structs-config.xml
> > .-- web.xml
> >
> > Below is content from WEB.XML and STRUTS-CONFIG.XML
> > 
> >
> > 
> >  >   SYSTEM
> >   "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd";>
> > 
> >   
> >   
> > action
> >
org.apache.struts.action.ActionServlet
> > 
> >   application
> >   test.struts.MessageResources
> > 
> > 
> >   config
> >   /WEB-INF/struts-config.xml
> > 
> > 
> >   debug
> >   2
> > 
> > 
> >   mapping
> >
> > org.apache.struts.action.RequestActionMapping
> > 
> > 2
> >   
> >   
> >   
> > action
> > *.do
> >   
> >
> >   
> >   
> > /WEB-INF/struts-bean.tld
> > /WEB-INF/struts-bean.tld
> >   
> >
> >   
> > /WEB-INF/struts-html.tld
> > /WEB-INF/struts-html.tld
> >   
> >
> >   
> > /WEB-INF/struts-logic.tld
> > /WEB-INF/struts-logic.tld
> >   
> >
> >   
> > /WEB-INF/struts-template.tld
> > /WEB-INF/struts-template.tld
> >   
> > 
> > 
> > 
> > 
> >  >   "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
> > 
> >
> >
> > 
> >
> > 
> >
> >
> >
> >
> >>path="/login"
> >type="test.struts.LoginAction"
> >name="login"
> >input="/jsp/LoginView.jsp"
> >validate="true">
> >
> >
> >   
> >
> > 
> > 
> > I have tried encounter any solution on web but i didn't success.
> > Any suggestion ?
> > thanks in advance.
> >
> >
>






> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: problem with bean having session scope

2002-03-15 Thread Otavio C. Decio

AFAIK, a session bean is destroyed when the session expires (30 min by
default).

Otavio

- Original Message -
From: "Slimane Zouggari" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 12:02 PM
Subject: Re: problem with bean having session scope


> well as nobody seems to have a clue about my problem. I'll ask my question
> differently :)
>
> When is a session bean destroyed ?
> If I specify, a form bean to have a session scope (as I did in the
> struts-config.xml), when will it be destroyed ?
>
> I suppose the form bean is created the first time I use a jsp:useBean tag
> in my jsp file, isn't it ?
>
> (for example:  class="be.stluc.info.struts.SearchByDateForm"/>)
>
> Finally, what could be the reasons, that some of my Action classes see
(can
> use their values) some session beans, while others don't ?
>
> Thanx for having taken the time to read me :)
>
> Friendly Regards,
> Slimane
>
> At 12:11 15/03/2002 +0100, you wrote:
> >Hi,
> >
> >I have 3 form beans. Each of them have a session scope defined in the
> >struts-config.xml.
> >
> >Here's the config for one of them:
> >>  >> type="be.stluc.info.struts.PieChartAction"
> >> name="piechartform"
> >> scope="session">
> >
> >When I try to access them in one of my Action class, I don't have any
problem.
> >But when I try to access them, from one other Action class, then
suddenly,
> >they don't exist anymore.
> >
> >I used the piece of code, Mr Keith Bacon posted in reply of one of my
> >previous mail (
>
>http://www.mail-archive.com/struts-user@jakarta.apache.org/msg25984.html )
> >
> >And that so, I saw that one time, my session contains all three form
beans
> >and another time my session contains only one form bean.
> >
> >Here's the code I use in my Action classes:
> >
> >> ParticipantDetailsForm partDetForm =
> >>   (ParticipantDetailsForm)
> >> request.getSession().getAttribute("participantdetailsform");
> >
> >(participantdetailsform is one of the 3 form beans I share in the
session)
> >
> >Could anyone give me pointers where I should look for ? Because, I'm sure
> >it's a stupid mistake but I can't find it :(
> >
> >Thanx in advance.
> >
> >Friendly Regards,
> >Slimane
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additional commands, e-mail:

>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Timestamp

2002-03-15 Thread Otavio C. Decio

For this to work you must have a property of type Timestamp in your Form
bean, for example dt_changed and access it normally either through



if you are displaying or

" />

if you want to create an edit box (you might not even need to use the
"value" clause, the html:text element should probably get it with the right
format but I didn't try). Probably other people in this list can confirm or
deny that. You can see how this is done looking into the bean.WriteTag
source code.

Ate',

Otavio


- Original Message -
From: "Fábio Queiroz Barbosa" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 10:55 AM
Subject: Re: Timestamp


> How to associate? You have a example?
>
> - Original Message -
> From: "Otavio C. Decio" <[EMAIL PROTECTED]>
> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> Sent: Friday, March 15, 2002 11:41 AM
> Subject: Re: Timestamp
>
>
> > You should download the latest nightly Struts build and use
> >
> > org.apache.struts.taglib.bean.format.sql.timestamp="dd/MM/"
> >
> > in your ApplicationResource.properties file.
> >
> > Abracos,
> >
> > Otavio
> >
> >
> >
> > - Original Message -
> > From: "Fábio Queiroz Barbosa" <[EMAIL PROTECTED]>
> > To: "Struts User" <[EMAIL PROTECTED]>
> > Sent: Friday, March 15, 2002 9:20 AM
> > Subject: Timestamp
> >
> >
> > How to format a Timestamp value for print dd/MM/ using  ?
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: Timestamp

2002-03-15 Thread Otavio C. Decio

You should download the latest nightly Struts build and use

org.apache.struts.taglib.bean.format.sql.timestamp="dd/MM/"

in your ApplicationResource.properties file.

Abracos,

Otavio



- Original Message -
From: "Fábio Queiroz Barbosa" <[EMAIL PROTECTED]>
To: "Struts User" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 9:20 AM
Subject: Timestamp


How to format a Timestamp value for print dd/MM/ using  ?

--
E-Consulting® Corp.
Estratégia - Tecnologia - Comunicação
www.e-consultingcorp.com.br

--
Fábio Queiroz Barbosa
Tecnologia
E-Mail: [EMAIL PROTECTED]
Tel.: (55 11) 3048-0764
Fax: (55 11) 3048-0766

---



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio

Thanks! I think it's ok to pass the connection to the DAO instead of making
it "discover" the connection information.

Otavio

- Original Message -
From: "Tom Lister" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 9:38 AM
Subject: RE: Accessing DATA_SOURCE_KEY on a DAO


> Hi
> My choice in the same situation was to get the datasource in the actions,
> actually implemented as a method in a base action I extend for everything
> else
> protected DataSource getDataSource() {
>   javax.sql.DataSource dataSource =
>
(DataSource)servlet.getServletContext().getAttribute(Action.DATA_SOURCE_KEY)
> ;
>   return dataSource;
> }
> I then pass the datasource to my DAO,
> Code in action is like
> EntryDAO ed = (EntryDAO)DAOFactory.getDAO(DAOFactory.ENTRYDAO);
> try {
> ListForm ff = (ListForm)form;
> ff.setEntries(ed.getQueryObjects(ed.readDatabase(null,
> getDataSource(), QueryEngine.SELECTALL)));
> System.out.println("ListAction");
>
> I figure it's OK to tell the DAO about standard objects such as datasource
> but not how they were obtained.There is quite a bit of support in the
> BaseDAO I created for handling queries. The specific DAO only know how to
> provide a query string and convert a result set to set of associated
> ActionForm object. My DAO's inplement a QueryEngine interface.
>
> :-)
> Regards
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> Advanced Banking Solutions Limited
> +44 (0)20 7448 9146
>
> -Original Message-
> From: Otavio C. Decio [SMTP:[EMAIL PROTECTED]]
> Sent: 28 November 2001 14:05
> To: Struts Users Mailing List
> Subject: Accessing DATA_SOURCE_KEY on a DAO
>
> Hi,
>
> I was trying to find the best way to access the data source
> configured in
> web.xml from a Data Access Object, but I'm confused because it
> requires the
> DAO to know about servlets, since one has use the
> getServlet().getServletContext function to get the connection
> information.
>
> Do you know of a better alternative?
>
> Thanks!
>
> Otavio
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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




Re: DB connection pool

2001-11-28 Thread Otavio C. Decio

Yes, I know, but I don't want my DAO to know anything about Actions. I like
Tom Lister's idea, to simply pass the datasorce to the DAO.

 Thanks!

Otavio
- Original Message -
From: "Arnaud Héritier" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 9:36 AM
Subject: RE: DB connection pool


In your struts-config.xml you declare all your connections pool :




...



...



...



Then in your Action classes you retreive your connections like this :

DataSource myDataSource1 = servlet.findDataSource("db1");
Connection myConnection1 = myDataSource1.getConnection();

DataSource myDataSource2 = servlet.findDataSource("db2");
Connection myConnection2 = myDataSource2.getConnection();

Arno

> -Message d'origine-
> De: Tom Lister [SMTP:[EMAIL PROTECTED]]
> Date: mercredi 28 novembre 2001 15:14
> À: 'Struts Users Mailing List'
> Objet: RE: DB connection pool
>
> Does anyone know how to work with multiple connection pools to different
> databases.
> :-)
> Regards
> [EMAIL PROTECTED] 
> Advanced Banking Solutions Limited
> +44 (0)20 7448 9146
> -Original Message-
> From: Viet Kevin [SMTP:[EMAIL PROTECTED]]
> Sent: 28 November 2001 13:43
> To: Struts Users Mailing List
> Subject: Re: DB connection pool
>
>
> //take the DataSource from the servlet context
>
> DataSource datasource =
> getServlet().getServletContext(Action.DATASOURCE_KEY);
>
> // and the connection
> Connection connection = datasource.getConnection();
>
> Don't forget to configure your database int  the struts-config.xml
>
> Ciao
>
>
>
> =
> -- KeV --
> =
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Accessing DATA_SOURCE_KEY on a DAO

2001-11-28 Thread Otavio C. Decio

Hi,

I was trying to find the best way to access the data source configured in
web.xml from a Data Access Object, but I'm confused because it requires the
DAO to know about servlets, since one has use the
getServlet().getServletContext function to get the connection information.

Do you know of a better alternative?

Thanks!

Otavio



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tiles/Orion(Oracle)

2001-10-31 Thread Otavio C. Decio

Hi all,

Did anybody successfully installed an ran Tiles on Oracle's flavor of Orion? We have a 
new project starting, I wanted to use Tiles but so far I couldn't solve a problem with 
the submenu. If someone got it running, would you please tell me which platform and 
version are you using.

Thanks!!

Otavio