You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ted Husted <ne...@husted.com> on 2001/01/25 17:36:04 UTC
Examples in Code
On 1/25/2001 at 12:48 PM JamesW@cardsetc.com wrote:
>An example in code would be really nice :-), although I'm happy to
help out in that regard.
Thanks for mentioning that! I've been thinking of starting an
"examples" (plural) toolkit to demonstrate solutions to some common
problems.
Conceptually, this would be somewhere between the Struts test
application and the current example application.
I may try to merge my simple login app with the Fruit Glaze MySQL
example to see how this might work.
If anyone has similar generic, working, standalone, textbook-grade
(note all four adjectives, please) examples of things they are doing,
please feel free to send them to me, and I will try and put it all
together.
In the 1.1 timeframe, we would also like to look at forming some type
of user-contributed library of useful classes and tags. I believe it is
important to emphasize the type of code reuse a framework like Struts
allows.
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/
Re: Examples in Code
Posted by Dzenan Ridjanovic <dz...@fsa.ulaval.ca>.
Actually, my example works just fine. It has DbActionServlet class that
inherits from ActionServlet. DbActionServlet grabs a data source only once
at the init time, creates a Db object and opens it with the data source
argument. The db package is not dependent on struts. I have used a
similar db package n several client-server applets.
I do plan to use an Oracle example as well. However, it is nice to have a
ready db example after you download the code. The only thing you need to
do is to define the ODBC data source. You do not need to have the Access
software to run the example locally. Of course, the Access db file is
Windows only.
Ted Husted wrote:
> That's certainly worth looking at, and if Craig's suggestions don't fix
> you up, I will.
>
> The one thing I would note is that there are restrictions on how the
> JDBC:ODBC driver can be used with an Access database. If you continue
> to have problems, and haven't used this for other JDBC applications, I
> would try another database to be sure that is not the problem. Likely
> candidates might include MySQL (available for most platforms, including
> NT) and HyperSonicSQL, which is pure Java. Once you have confirmed that
> it is not an JDBC:ODBC:Access issue, you could switch back and continue
> troubleshooting.
>
> http://mysql.com/
> http://www.hypersonicsql.com/
>
> *********** REPLY SEPARATOR ***********
>
> On 1/25/2001 at 2:06 PM Dzenan Ridjanovic wrote:
>
> Look at the examples in
>
> http://drdb.fsa.ulaval.ca:8080/dr/html/struts/membership/index.html
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 425-0252; Fax 716 223-2506.
> -- http://www.husted.com/about/struts/
--
Dzenan Ridjanovic
http://drdb.fsa.ulaval.ca/
Re: Examples in Code
Posted by Ted Husted <ne...@husted.com>.
That's certainly worth looking at, and if Craig's suggestions don't fix
you up, I will.
The one thing I would note is that there are restrictions on how the
JDBC:ODBC driver can be used with an Access database. If you continue
to have problems, and haven't used this for other JDBC applications, I
would try another database to be sure that is not the problem. Likely
candidates might include MySQL (available for most platforms, including
NT) and HyperSonicSQL, which is pure Java. Once you have confirmed that
it is not an JDBC:ODBC:Access issue, you could switch back and continue
troubleshooting.
http://mysql.com/
http://www.hypersonicsql.com/
*********** REPLY SEPARATOR ***********
On 1/25/2001 at 2:06 PM Dzenan Ridjanovic wrote:
Look at the examples in
http://drdb.fsa.ulaval.ca:8080/dr/html/struts/membership/index.html
-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/about/struts/
Re: Examples in Code
Posted by Dzenan Ridjanovic <dz...@fsa.ulaval.ca>.
Look at the examples in
http://drdb.fsa.ulaval.ca:8080/dr/html/struts/membership/index.html
Ted Husted wrote:
> On 1/25/2001 at 12:48 PM JamesW@cardsetc.com wrote:
> >An example in code would be really nice :-), although I'm happy to
> help out in that regard.
>
> Thanks for mentioning that! I've been thinking of starting an
> "examples" (plural) toolkit to demonstrate solutions to some common
> problems.
>
> Conceptually, this would be somewhere between the Struts test
> application and the current example application.
>
> I may try to merge my simple login app with the Fruit Glaze MySQL
> example to see how this might work.
>
> If anyone has similar generic, working, standalone, textbook-grade
> (note all four adjectives, please) examples of things they are doing,
> please feel free to send them to me, and I will try and put it all
> together.
>
> In the 1.1 timeframe, we would also like to look at forming some type
> of user-contributed library of useful classes and tags. I believe it is
> important to emphasize the type of code reuse a framework like Struts
> allows.
>
> -- Ted Husted, Husted dot Com, Fairport NY USA.
> -- Custom Software ~ Technical Services.
> -- Tel 716 425-0252; Fax 716 223-2506.
> -- http://www.husted.com/about/struts/
--
Dzenan Ridjanovic
http://drdb.fsa.ulaval.ca/