Struts in Print

2003-02-14 Thread Bradley G Smith
There are 3 (!) articles about Struts in the recent issue of Oracle
Magazine (Jan/Feb 2003). The most recent Linux Magazine also has a Struts
article (the whole issue has a Java and Linux focus). It always helps to
have these references around to convince management that Struts is a good
strategic choice.

Brad




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




Re: Best tag to display table

2003-02-13 Thread Bradley G Smith

For your information, Ed Hill has graciously allowed a small team of
interested developers to take over maintenance and update of the displaytag
code. The team is in the process of collating patches and updates Ed has on
hand as well as a few other tag libraries that extended the original
displaytag library. The project is now hosted on SourceForge. It is just
getting started, so there is not much information on deliverables yet.

Brad Smith



   
  
  Heligon Sandra   
  
   
  homson.net>   cc:
  
Subject: Best tag to display table 
  
  13-02-03 08:04   
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  





>I must display a table in a JSP page with the following
features:
>
>- paging;
>- sort on the column header;
>- multi check-box;
>- rendering conditional color rows;
>- internationalization (column header);
>
>Can somebody indicate the best choice to me?
>I began with logic:iterate (struts tag) but I think now use
the
>  tag.
>Is the last version of the display.jar/display.tld available
on the
> link http://edhill.its.uiowa.edu/display-0.8/?
>What can we say about   vs JSTL/JSTL-EL iterate
tags
> (c:forEach...) ?
>Is the display tag the best choice ?
>
>
>
>
> ---
> As of February 12, 2003 Thomson unifies its email addresses on a
worldwide
> basis.Please note my new email address: [EMAIL PROTECTED]
>
> Thomson is the leader in solutions and technologies for the entertainment
> and media industries and serves its customers under its four strategic
> brands: Technicolor, Grass Valley, RCA and THOMSON.
> More about Thomson: http://www.thomson.net/videochain
>

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







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




Re: OT: Yet another Persistence Survey

2003-02-12 Thread Bradley G Smith

Answer for our Struts applications is current "C".

Brad



   
 
  Vic Cekvenich
 
  <[EMAIL PROTECTED] To:  [EMAIL PROTECTED] 
 
  m>   cc: 
 
   Subject: OT: Yet another Persistence 
Survey  
  12-02-03 10:16   
 
  Please respond   
 
  to "Struts Users 
 
  Mailing List"
 
   
 
   
 




I am curious as to what is popular and working in larger production sites
(as opposed to still in development, or like less than 200 concurent
users, or not working well in production or a theory as to what might
work well)
for persistence:

  A. Hibernate
  B. Castor
  C. Roll Your Own Beans/ Custom DAO (RowSet or ResultSet) with no
 OMG or O/R
  D. Ibatis
  E. One of http://db.apache.org  (please specify which) _
  F. EJB
  G. Other OMG  or O/R : __
  H: Other SQL based (not OMG or O/R) : 

- - - -
Answer:




If a bunch of people can respond about what is in production and
working, it be real nice, please vote multiple times for each, I would
like to see popularity.


Tia,
.V



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







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




RE: [OT] dummy data tool

2003-02-10 Thread Bradley G Smith

As a Struts-based application developer and project manager living in Bend
and looking at Mt Bachelor every day, I can second Craig's comments. The
mountains are indeed beautiful. The ski slopes are just 3/4 hour away.

Brad



   
 
  "Craig R.
 
  McClanahan"  To:  Struts Users Mailing List 
<[EMAIL PROTECTED]>  
  Subject: RE: [OT] dummy data tool   
 
   
 
  10-02-03 13:10   
 
  Please respond   
 
  to "Struts Users 
 
  Mailing List"
 
   
 
   
 






On Mon, 10 Feb 2003, Mark Galbreath wrote:

> Not fair!!!  You probably have no more than a 1/2-hour drive to great
skiing
> in the Crater Lake area!  One of my best friends works for Intel and
lives
> in Seattle.  He tells me the skiing is fantastic in the Cascade Range.
>

Crater Lake would be about six hours, but Mount Hood has several nice ski
areas about 90 minutes away ... and there is nothing prettier than the Mt.
Bachelor ski area in central Oregon (roughly four hours for me), near
Bend.

I went to college in Tacoma (just south of Seattle), and the Washington
Cascades do indeed have some nice ski areas too.








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




Re: restarting tomcat with Ant

2003-01-21 Thread Bradley G Smith

There are also the ant tasks in the catalina-ant.jar (or something close)
file that is distributed with tomcat. This makes for some easy integration
with ant.

Brad



   
  
  "Raible, Matt"   
  
  <[EMAIL PROTECTED] To:  "'Struts Users Mailing 
List'"
  omcast.com>  <[EMAIL PROTECTED]>
  
   cc: 
  
  21-01-03 12:34   Subject: restarting tomcat with Ant 
  
  Please respond to
  
  "Struts Users
  
  Mailing List"
  
   
  
   
  




Personally, I use aliases in my .bashrc file (if on Windows, use cygwin):

alias tstart='$CATALINA_HOME/bin/startup.bat'
alias tstop='$CATALINA_HOME/bin/shutdown.bat'

Then I can just to tstop and tstart from the command line and start/stop
tomcat.  However, if you *really* want to do it from Ant, here's what I
have
for Cactus:


































> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 21, 2003 1:25 PM
> To: Struts Users Mailing List
> Subject: RE: AW: easy struts
>
>
>
>
> On Tue, 21 Jan 2003, ROSSEL Olivier wrote:
>
> >
> > Can anyone tell me if Ant is able to start/stop Tomcat?
> >
>
> Cactus includes some Ant targets that do this, but I've never
> needed them.
> I just leave Tomcat running all the time and used the dynamic install,
> reload, and remove commands that come with Tomcat 4.1.
>
> Starting and stopping Tomcat takes *way* too long in a
> development cycle,
> on matter how you actually do it.
>
> Craig
>
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


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







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




RE: db connection pool question

2003-01-21 Thread Bradley G Smith

I believe you can define data sources in server.xml for tomcat at least,
and make them available for multiple applications. But I have not done that
yet (using Oracle connection pool classes).

Brad



   
  
  david chan   
  
 
  hoo.com> cc: 
  
   Subject: RE: db connection pool 
question  
  21-01-03 09:43   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




With the use data-sources in Struts-config.xml, How
can I get the data-source in my initServlet that will
be loaded during startup of tomcat (or websphere)? My
initServlet will do one time loading of some data from
Oracle database and store them into application scope
and shared by different session. There are a couple of
things need to be sure:

1) struts datasource should be setup first (does
setting servlet loading sequence in web.xml, i.e.
ActionServlet will load first, then is my initServlet
etc...)
2) how to get the datasource from initServlet?
3) In general, I would like to ask what's the better
pratice to do web application initialization when
using Struts framework. i.e. init datasource, log4j
etc... So that I don't need to customize config for
tomcat, webshpere etc..

(My current solution doesn't use data-source within
Struts-config.xml, and I don't like that because I
need to do some config in tomcat's server.xml which
make it depends on app. server)

Thanks.
David

--- Bradley G Smith <[EMAIL PROTECTED]> wrote:
>
> If the Oracle class has the getter and setter
> methods, then yes, you can
> set these properties. Struts is very nice about
> conforming to JavaBean
> standards. I seem to recall that there were a couple
> of properties in the
> Oracle class that did not conform to JavaBean
> standards, but most did.
>
> Brad
>
>
>
>
>
>
>   david chan
>
>
>   Struts Users Mailing List
> <[EMAIL PROTECTED]>
>   hoo.com> cc:
>
>
>
> Subject: RE: db connection pool question
>
>   21-01-03 09:13
>
>
>   Please respond
>
>
>   to "Struts Users
>
>
>   Mailing List"
>
>
>
>
>
>
>
>
>
>
>
>
> Can I configure the MAX_LIMIT, MIN_LIMIT or
> maxActive,
> maxIdle property for Oracle datasource?
> I look at the oracle817 JDBC API docs, there is only
> one class "OracleOCIConnectionPool" with some
> properties like these but not sure I can set them
> within the data-sources element of my
> Struts-config.xml?
>
> David
>
> --- "Raible, Matt" <[EMAIL PROTECTED]>
> wrote:
> > I'm assuming this will work for configuring a
> > context in Tomcat as well?
> >
> >
>
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51842.html
> >
> > Thanks,
> >
> > Matt
> >
> >
> > > -Original Message-
> > > From: Bradley G Smith
> [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, January 21, 2003 9:29 AM
> > > To: Struts Users Mailing List
> > > Cc: david chan; Struts Users Mailing List
> > > Subject: Re: db connection pool question
> > >
> > >
> > >
> > > "select 1 from dual" is the standard way to
> "ping"
> > oracle for a valid
> > > connection. I would also recommend using
> Oracle's
> > connection
> > > pool. It will
> > > do this in the background. We have several
> tomcat
> > and struts
> > > applications
> > > running for weeks without problems. Even with
> > Oracle going
> > > off line for
> > > maintenan

RE: db connection pool question

2003-01-21 Thread Bradley G Smith

And, where i mention PID below, I meant SID (which is going away according
to Oracle).

Brad



   
  
  "Bradley G   
  
  Smith"   To:  "Struts Users Mailing List" 
<[EMAIL PROTECTED]> 
  <[EMAIL PROTECTED] cc: 
  
  d.us>Subject: RE: db connection pool 
question  
   
  
  21-01-03 09:34   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  





My pleasure. Here is the relevant code in the struts-config.xml file:


   
  
  
  
  
   


Be sure and set the port (1521) and pid (ddb) correctly.

Here is code from a plug-in that gets the reference to the datasource:

  //initialize data cache
  DataSource ds = (DataSource) servlet.getServletContext()

.getAttribute(DataKeys.DATABASE_KEY);

  if (ds == null){
 ServletException e = new ServletException(
"Datasource from servletcontext returned null");
 log.error("Datasource is null.", e);
 throw e;
  }

DATABASE_KEY is the same value as the key on the DataSource in
struts.config.xml (ie POLL_DATA_SOURCE for our application). The DataSource
is the standard JDBC datasource interface.


We put the Oracle driver file (classes12.zip renamed to oracle.jar) into
Tomcat's commons/lib directory.

Brad




  Thorsten Schäfer

  
<[EMAIL PROTECTED]>
cc:

  21-01-03 09:13Subject: RE: db
connection pool question
  Please respond to

  "Struts Users Mailing

  List"







Hi,

> I can supply and example struts configuration using Oracle's driver
> connection pool driver. Or check the archives for this mailing list,
as I
> have posted it here. Search using my name or Oracle.

Could you please post the example? I tried to search in the mailing
lists but I'm getting the error message "Text search not available for
this list".








--
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 question

2003-01-21 Thread Bradley G Smith

My pleasure. Here is the relevant code in the struts-config.xml file:


   
  
  
  
  
   


Be sure and set the port (1521) and pid (ddb) correctly.

Here is code from a plug-in that gets the reference to the datasource:

  //initialize data cache
  DataSource ds = (DataSource) servlet.getServletContext()

.getAttribute(DataKeys.DATABASE_KEY);

  if (ds == null){
 ServletException e = new ServletException(
"Datasource from servletcontext returned null");
 log.error("Datasource is null.", e);
 throw e;
  }

DATABASE_KEY is the same value as the key on the DataSource in
struts.config.xml (ie POLL_DATA_SOURCE for our application). The DataSource
is the standard JDBC datasource interface.


We put the Oracle driver file (classes12.zip renamed to oracle.jar) into
Tomcat's commons/lib directory.

Brad



   
   
  Thorsten Schäfer 
   
 <[EMAIL PROTECTED]>   
   
cc:
   
  21-01-03 09:13Subject: RE: db connection pool 
question  
  Please respond to
   
  "Struts Users Mailing
   
  List"
   
   
   
   
   




Hi,

> I can supply and example struts configuration using Oracle's driver
> connection pool driver. Or check the archives for this mailing list,
as I
> have posted it here. Search using my name or Oracle.

Could you please post the example? I tried to search in the mailing
lists but I'm getting the error message "Text search not available for
this list".








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




RE: db connection pool question

2003-01-21 Thread Bradley G Smith

If the Oracle class has the getter and setter methods, then yes, you can
set these properties. Struts is very nice about conforming to JavaBean
standards. I seem to recall that there were a couple of properties in the
Oracle class that did not conform to JavaBean standards, but most did.

Brad



   
  
  david chan   
  
 
  hoo.com> cc: 
  
   Subject: RE: db connection pool 
question  
  21-01-03 09:13   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




Can I configure the MAX_LIMIT, MIN_LIMIT or maxActive,
maxIdle property for Oracle datasource?
I look at the oracle817 JDBC API docs, there is only
one class "OracleOCIConnectionPool" with some
properties like these but not sure I can set them
within the data-sources element of my
Struts-config.xml?

David

--- "Raible, Matt" <[EMAIL PROTECTED]>
wrote:
> I'm assuming this will work for configuring a
> context in Tomcat as well?
>
>
http://www.mail-archive.com/struts-user@jakarta.apache.org/msg51842.html
>
> Thanks,
>
> Matt
>
>
> > -Original Message-
> > From: Bradley G Smith [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 21, 2003 9:29 AM
> > To: Struts Users Mailing List
> > Cc: david chan; Struts Users Mailing List
> > Subject: Re: db connection pool question
> >
> >
> >
> > "select 1 from dual" is the standard way to "ping"
> oracle for a valid
> > connection. I would also recommend using Oracle's
> connection
> > pool. It will
> > do this in the background. We have several tomcat
> and struts
> > applications
> > running for weeks without problems. Even with
> Oracle going
> > off line for
> > maintenance.
> >
> > I can supply and example struts configuration
> using Oracle's driver
> > connection pool driver. Or check the archives for
> this
> > mailing list, as I
> > have posted it here. Search using my name or
> Oracle.
> >
> > Brad
> >
> >
> >
> >
>
> >
>
> >   Rick Reumann
>
> >
>
> >   
> > "Struts Users Mailing List"
> <[EMAIL PROTECTED]>
> >   n.net>   cc:
>  david
> > chan <[EMAIL PROTECTED]>
>
> >
> Subject: Re:
> > db connection pool question
>
> >   21-01-03 07:19
>
> >
>
> >   Please respond
>
> >
>
> >   to "Struts Users
>
> >
>
> >   Mailing List"
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
> >
> >
> >
> > On Tuesday, January 21, 2003, 9:56:09 AM, david
> wrote:
> >
> > dc> Hi,  I am using a connection pool from
> > dc> org.apache.commons.dbcp.BasicDataSourceFactory
> and the driver is
> > dc> oracle.jdbc.driver.OracleDriver. It works
> great until if the
> > dc> server idle for a few days, then the
> connection object seems
> > dc> broken with this error:  begin error mesg
> ===
> > dc> java.sql.SQLException: Io exception: Software
> caused connection
> > dc> abort: socket wr ite error   at
> >
> > I believe I had similar problems here as well but
> it usually only
> > happened when the DBA would for some reason decide
> to kill connections
> > that were open. I went with configuring the
> pooling with whatever
> > comes packaged with Tomcat and configuring it in
> the server.xml
> > making sure to add the extra overhead of
> perform

Re: db connection pool question

2003-01-21 Thread Bradley G Smith

"select 1 from dual" is the standard way to "ping" oracle for a valid
connection. I would also recommend using Oracle's connection pool. It will
do this in the background. We have several tomcat and struts applications
running for weeks without problems. Even with Oracle going off line for
maintenance.

I can supply and example struts configuration using Oracle's driver
connection pool driver. Or check the archives for this mailing list, as I
have posted it here. Search using my name or Oracle.

Brad



   
  
  Rick Reumann 
  
   
  n.net>   cc:  david chan 
<[EMAIL PROTECTED]>  
   Subject: Re: db connection pool 
question  
  21-01-03 07:19   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




On Tuesday, January 21, 2003, 9:56:09 AM, david wrote:

dc> Hi,  I am using a connection pool from
dc> org.apache.commons.dbcp.BasicDataSourceFactory and the driver is
dc> oracle.jdbc.driver.OracleDriver. It works great until if the
dc> server idle for a few days, then the connection object seems
dc> broken with this error:  begin error mesg ===
dc> java.sql.SQLException: Io exception: Software caused connection
dc> abort: socket wr ite error   at

I believe I had similar problems here as well but it usually only
happened when the DBA would for some reason decide to kill connections
that were open. I went with configuring the pooling with whatever
comes packaged with Tomcat and configuring it in the server.xml
making sure to add the extra overhead of performing a validation query


   validationQuery
   SELECT 'CRAP' FROM DUAL


Not sure what app server you are running but maybe somewhere you can
set up a similar parameter to make sure it is handing out a valid
connection from the pool. I'm pretty clueless when it comes to this
stuff and just followed some examples I saw. Until I added the above
validationQuery I believe I got similar errors to what you
experienced.

--

Rick
mailto:[EMAIL PROTECTED]


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







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




RE: Axis/SOAP proposal for Struts

2003-01-17 Thread Bradley G Smith

I readily admit to being relatively new to struts and have only deployed 2
applications with it. I am just now designing a 3rd application that will
prototype a SOAP access layer into the business logic that is also accessed
via a Struts web layer.

To the extent that the Model is independent of how the View is implemented,
I agree with your points. I am not yet clear in my own mind that the Model
for a SOAP access point would be completely congruent with a Struts Model.

Brad



   
  
  "Mike Oliver"
  
<[EMAIL PROTECTED]>
  
   cc: 
  
  17-01-03 09:09   Subject: RE: Axis/SOAP proposal for 
Struts
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




I disagree.  MVC - A SOAP client requester is just another V, why
wouldn't you want to reuse the M and C?  I see very little difference
between a SOAP response and a Struts response in XML/XSLT.  I for one do
not want more than one set of Business Logic components on my Data
Model, regardless of the source of the Request.  I also see very little
difference between a SOAP Request with a serialized FormBean in it and
an html form post, except of course the format of the inputstream.  The
content, which is what matters, would be the same.

I would not modify the ActionServlet, but I would have an Axis/SOAP
entry point that did similar work and reused the Struts components
alongside the ActionServlet as an alternate entry point.  That means a
request from either a user on a web browser posting a form or doing a
get would execute the same RequestHandler, access the same Data Model
and business logic and get a response from a Forward that formed a SOAP
Response instead of a web page.

Michael Oliver
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
Phone:(520)574-1150
Fax:(520)844-1036


-----Original Message-
From: Bradley G Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 17, 2003 9:46 AM
To: Struts Users Mailing List
Subject: Re: Axis/SOAP proposal for Struts


I have been thinking about it this off and on for a while. It seems to
me
that SOAP (or xml-rpc or ...) would be another access point into the
business logic of the application that is a peer to the access point
provided by a Struts-based layer. The Struts-based components provide
the
mechanism to deliver content to web browsers, the SOAP interface enables
content delivery from the business logic layer to other types of clients
on
the network. I do not see the need to extend the ActionServlet to
provide
this type of access.

Brad Smith












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




Re: Axis/SOAP proposal for Struts

2003-01-17 Thread Bradley G Smith

I have been thinking about it this off and on for a while. It seems to me
that SOAP (or xml-rpc or ...) would be another access point into the
business logic of the application that is a peer to the access point
provided by a Struts-based layer. The Struts-based components provide the
mechanism to deliver content to web browsers, the SOAP interface enables
content delivery from the business logic layer to other types of clients on
the network. I do not see the need to extend the ActionServlet to provide
this type of access.

Brad Smith



   
  
  "Mike Oliver"
  
   
  rs.com>  cc: 
  
   Subject: Axis/SOAP proposal for Struts  
  
  17-01-03 07:45   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




Struts Users,



I would like to propose that Struts be extended to support another entry
point.  The ActionServlet would be augmented by an Axis/SOAP Web
Services Interface to Struts.  FormBeans would be part of the payload
for requests.  Responses would be generated by Forwards for SOAP.  This
new Axis entry point would do the same work as ActionServlet with the
only significant difference being the construction of the FormBean.
Incoming SOAP Requests would be configured to call the same
RequestHandlers and as far as the actions go they won't know that the
source was an HTML Form or a serialized FormBean.



I feel this will give a great deal of flexibility to Applications where
they want a Web Browser User Interface as well as Web Services for the
same Application Data Model and Business Logic.



I am planning on doing this anyway, and felt it applicable to this group
and would offer to share it as a sub project and would welcome
contributions of thought, expertise and code.



Michael Oliver
Chief Technology Officer
AppsAsPeers LLC
7391 S. Bullrider Ave.
Tucson, AZ 85747
520.574.1150 Voice
520.844.1036 Fax
520.270.8862 Cell
http://www.appsaspeers.com   Home Page
[EMAIL PROTECTED] SMS
http://www.ollie.ezpeer.net   Personal
Home Page
http://www.ollie.im-live.com/im-live/  Instant Chat
[EMAIL PROTECTED] MSN Messenger
[EMAIL PROTECTED] Yahoo Instant Messenger
MikeOliverAZ Aol Instant Messenger











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




Re: Collection within Collection

2003-01-15 Thread Bradley G Smith

Here is an example of a body content JSP (nested in a template jsp) that
pulls a Collection bean from the request context (a ResultList from the
Scaffold Struts library). This bean, called listBean, provides and
"applications" property that is also a Collection (ArrayList). The jsp
iterates over the ResultList and over each ArrayList contained in each
element of the ResultList.

I suppose Notes will scramble this code beyond all recognition however,


<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<%-- $Id: results-body.jsp,v 1.7 2003/01/02 22:54:35 bgsmith Exp $ --%>






   
   
  
Unit: 
Connect String: 
Connnection Status: 
 
Application Name
Version
Date Checked
 


  
 
 
 

 




  
 

  
   

   
  
   

 

<%-- property="method" --%>

   
  
   
   
  
   



 



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




Cancel & Submit Buttons

2002-12-20 Thread Bradley G Smith
Can someone please describe how to enable an action to respond to submit
and cancel buttons differently? The action is derived from the
scaffold.BaseAction class. I have submit working to generate a response. I
would like cancel to redirect to the main menu of the application.

I suppose one solution is to use a dispatch action first to chain to either
the "submit" action or the "cancel" action. Is this the best way to do
this? Or am I missing something that BaseAction provides out of the box?

Thanks,

Brad




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




Re: Oracle DataSource Tips

2002-12-17 Thread Bradley G Smith

One tactic I have used is to create a singleton data access class (e.g.
DataCache) which provides methods that return data as beans (not action
form beans). The DataCache class gets initialized in a Struts plug-in.
Plug-ins execute once when the application starts and once when it shuts
down, and require Struts 1.1. The beans can do the business logic
processing as needed. The plug-in has access to the servlet context so can
access the datasource defined in struts-config.xml or in the servlet
container configuration file(s).

Brad



   
  
  Mark 
  
 
  .it> cc: 
  
   Subject: Re: Oracle DataSource Tips 
  
  17-12-02 01:09   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  




Hello

I'm using oracle as my datsource as well, I haven't had this problem but
that in my earlier posting..

So who do you reference the datasource specifed in config.xml in business
logic classes. The docs recommend this seperation but provide no clear way
of doing this, am i missing something?

Many thanks mark








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




Re: Oracle DataSource Tips

2002-12-16 Thread Bradley G Smith

This might be a little more readable (w/ correction). Formatting courtesy
of Notes.

Brad


 
  
  
  
  
 




   
  
  "Bradley G   
  
  Smith"   To:  [EMAIL PROTECTED] 
  
  <[EMAIL PROTECTED] cc: 
  
  d.us>Subject: Oracle DataSource Tips 
  
   
  
  16-12-02 13:01   
  
  Please respond   
  
  to "Struts Users 
  
  Mailing List"
  
   
  
   
  






   
  
  
  
  
   










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




Oracle DataSource Tips

2002-12-16 Thread Bradley G Smith
Since it took me several hours to catch this bug, I thought I might pass it
along to anyone using Oracle as a datasource for the Struts application.

The OracleDatSource and OraclePooledConnectionDataSource classes use
standard Bean naming conventions for getters and setters. The url property,
however, uses setURL and getURL for the setter and getter respectively.
Therefore, the set-property element in the datasource clause should be
 instead of
.

A valid datasource definition that is working for me is:


   
  
  
  
  
   


The xxx.xxx.xxx.xxx value is an IP or resolvable hostname for the oracle
server. 1521 is the port to use. "a" is the instance name for the database.
The key is an arbitrary string.

If you choose instead to use the default connection pool from Struts (via
the Commons database package) then the ping that works for Oracle is
"select 1 from dual". Dual is a virtual table in every Oracle instance.

Brad



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




Re: struts 1.1-b2 connection Pool

2002-11-26 Thread Bradley G Smith

For what it is worth, I use several web applications with Oracle as the
backend database. The "ping" query that I have used for a long time (since
JDBC 1.0 days) with Oracle is "select 1 from dual".

Brad



   
 
"Craig R.  
 
McClanahan"  To: Struts Users Mailing List 
 
  
 
che.org> cc:   
 
 Subject: Re: struts 1.1-b2 connection 
Pool 
25-11-02   
 
20:31  
 
Please 
 
respond to 
 
"Struts Users  
 
Mailing List"  
 
   
 
   
 






On Tue, 26 Nov 2002, Jithendra_Kengerichikkanna wrote:



The 1.1 version of GenericDataSource makes available the fact that
commons-dbcp supports a "ping query" that is executed before the
pool returns a Connection as a result of the getConnection() method.






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




PlugIn - and PlugIn Properties

2002-11-19 Thread Bradley G Smith
Does someone have a good example of using a Struts PlugIn with PlugIn
properties they would be willing to share. I tried to follow the code in
the Tiles PlugIn but this seemed to be overly complex for what I need.

Thanks,

Brad Smith



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




[OT] Oracle Magazine Java Developer of the Year

2002-10-28 Thread Bradley G Smith
The nov/dec issue of Oracle Magazine has several "person of the year"
awards. The person picked as Java developer of the year is James Holmes for
his work on Struts Console.

Struts is also mentioned in several articles as a key framework component
in the same issue.

Brad


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




RE: Printing User Guide

2002-10-24 Thread Bradley G Smith

Yes I believe you are correct. Quoted blocks to seem to be the culprit.
There are times when it is more convenient to have a printed page for
reference and reading and this problem makes that difficult to do.

Brad



   
 
"Skip  
 
Hovsmith"To: "Struts Users Mailing List"   
 
  
 
ise.com> cc:   
 
 Subject: RE: Printing User Guide  
 
24-10-02   
 
13:55  
 
Please 
 
respond to 
 
"Struts Users  
 
Mailing List"  
 
   
 
   
 




If believe that the minimum width of the page is determined by the largest
blockquoted text in the document to be printed. If this width is less than
a
printed page width, the print routine will format the output to the page
width, but if it's larger, you're out of luck unless you can shrink the
print output scaling using something such as Acrobat to print a pdf
document.

I think the margin creep you noticed is a red herring- look for the quote
blocks.

Regards, Skip

-Original Message-
From: Bradley G Smith [mailto:bgsmith01@;fs.fed.us]
Sent: Thursday, October 24, 2002 10:22 AM
To: [EMAIL PROTECTED]
Subject: Printing User Guide


I have noticed that when I try to print out the user guide, that each
section has a slightly larger right margin so that when I try to print the
3rd section or so (Model Components or View Components) the right margin of
the text is truncated and therefore unusable. I have noticed this with
other Jakarta online manuals, so this probably is best marked Off Topic?

Has anyone else noticed this? Or is this some fatal flaw in my local set
up?

Thanks,

Brad



--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@;jakarta.apache.org>



--
To unsubscribe, e-mail:   <
mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <
mailto:struts-user-help@;jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@;jakarta.apache.org>




Printing User Guide

2002-10-24 Thread Bradley G Smith
I have noticed that when I try to print out the user guide, that each
section has a slightly larger right margin so that when I try to print the
3rd section or so (Model Components or View Components) the right margin of
the text is truncated and therefore unusable. I have noticed this with
other Jakarta online manuals, so this probably is best marked Off Topic?

Has anyone else noticed this? Or is this some fatal flaw in my local set
up?

Thanks,

Brad



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




Datasource Access Options (was Connection Pooling)

2002-10-15 Thread Bradley G Smith


I spent much of yesterday using Google to glean information about
configuring Struts (w/ Tomcat in my case) to use a datasource. As Eddie
Bush points out in a prior post options for initializing a datasource (with
or without a connection pool) include:

1. Tomcat JNDI service via server.xml;
2. An initialization servlet;
3. A Struts plugin (1.1 or newer I believe)
4. Singleton pattern.

And I suppose a fifth option might be using a persistence framework which
would possibly implement one of the above behind the scenes more or less.
Some useful info on persistence frameworks is at:

http://www.rollerweblogger.org/page/roller/20021013

Does anyone have any thoughts of selection criteria that would inform a
choice between them? In my case, I would be using Oracle drivers which do
have a connection pool built-in (JDBC 2).

Thanks,

Brad



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




Re: Struts project

2002-10-09 Thread Bradley G Smith/R6/USDAFS


Excellent. Thanks. I placed an order for the book (and several others) last
week. I look forward to the additional material.

Brad



   
 
chuckcavaness  
 
@attbi.com   To: "Struts Users Mailing List"   
 
 <[EMAIL PROTECTED]>  
 
09-10-02 cc:   
 
08:11Subject: Re: Struts project   
 
Please 
 
respond to 
 
"Struts Users  
 
Mailing List"  
 
   
 
   
 




As Eddie mentioned, I ran out of time and the book was
getting large, so a few of the chapters were cut. I've
decided to go ahead and write a few of them and just
make them freely available on this list and several
Struts-releated sites. I'm starting with the Security
chapter first and then probably will do the one on
Alternative Presentations. Each one should take about 2
to three weeks to write since I don't have an editor
banging me on the head :)

Stay tuned...

Chuck






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