Re: connection pools

2002-10-07 Thread Dariusz Wojtas

Monday, October 7, 2002, 4:14:32 PM, you wrote:
AM> Hi All,

AM> a quick question. I just need references to open source database connection 
AM> pools available for checking out. I know Poolman and Protomatter.

AM> Does Apache provides any more complete pool? Any nicer pool anywhere?

Try commons-dbcp from Jakarta.
http://jakarta.apache.org/commons/dbcp.html

It is integrated with several products (tomcat, hibernate)
and works nicely.

Darek


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




Re: Scheduled Jobs

2002-09-26 Thread Dariusz Wojtas

Hi,

you may define some thread to be started while the app init process.
Works nicely for us.

Two classes are required.
1. Simple init servlet that will be plugged into web.xml
   (similar to the way that struts action servlet is plugged)
   In the 'init' method you could start your thread daemon.
   You could also pass some parameters this way.
   Stop the thread in the 'destroy' method.
   Because this solution works with threads, I would advise to
   put some flag there if it has already been started or not, to make
   sure there is only 1 instance of your thread.

2. The thread class.
   It could be parametrized (see above), for example JNDI resource
   name for database, interval, etc ...

We sceptic about such solution, but it really works nicely when we
tried it.

Another solution.
You could create some servlet that does cleanup job,
and periodically call it with cron.
I would advise 'curl' as your http client - works on Unixes and
Windows. It's very nice, free, single file program.
That solution is platform dependent, ie. different way of configuring
cron, and different versions of your http client are required.

Is anybody using different solution?

Darek


Thursday, September 26, 2002, 11:54:27 AM, you wrote:
g> Hi!
g> In my struts app I have to do some cleanup jobs in my database that I
g> like to start regularly. What's the best way to realize such schedules 
g> jobs in a struts app?

g> Thanks in advance.

g>gus


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




Re: Tiles error (Help)

2002-09-25 Thread Dariusz Wojtas

Hi, I had the same problem.
That was the error I could see in the browser.
But in my app logs I found more details.
I just forgot to close some tag in my struts-config file.
I corrected that and it works nicely again.

Maybe that is your problem too?

Darek

Wednesday, September 25, 2002, 3:48:19 PM, you wrote:
HS> I am using Tiles and when I run my application
HS> I have the following error:

HS> javax.servlet.ServletException: Can't get definitions factory from
HS> context. 
HS> javax.servlet.ServletException: Can't get definitions factory from
HS> context.
HS> at
HS> org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
HS> l.java:471) 
HS> at org.apache.jsp.index$jsp._jspService(index$jsp.java:96)  
HS> at
HS> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)

HS> I work with Struts1.1b2, my config file is the following:

[snip]


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




JDO example - rozpakowywac Commanderem

2002-09-10 Thread Dariusz Wojtas

Wednesday, September 11, 2002, 6:55:25 AM, you wrote:
JM> Sorry for the delay.  I've decided to post this on our website.

JM> Please feel free to download and try it out.

JM>  http://www.open-tools.org/struts-atlanta/downloads/DBMessageResources

JM> If for some reason the site goes down, just send me an email and I'll get it
JM> to you.




JM> James Mitchell
JM> Software Engineer\Struts Evangelist
JM> Struts-Atlanta, the "Open Minded Developer Network"
JM> http://www.open-tools.org/struts-atlanta




>> -Original Message-
>> From: James Mitchell [mailto:[EMAIL PROTECTED]]
>> Sent: Tuesday, September 10, 2002 3:06 PM
>> To: Struts Users Mailing List
>> Subject: [Announce] [New Extension] ApplicationResources.properties from
>> Database
>>
>>
>> For anyone interested, I have finished implementing DBMessageResources
>> which allows you to keep the key-value pairs (from your
>> ApplicationResources.properties) in a single database table.
>>
>> You can load your property files into a table (generic schema is provided)
>> and with this extension, by only modifying  in the
>> struts-config.xml your application will run WITHOUT ANY code changes. (See
>> the readme.txt file included)
>>
>> This extension uses OJB (http://jakarta.apache.org/ojb) O/R mapping for
>> database configuration and connection pool management.
>>
>> I have included a modified version of the (1.1b2) struts-example to
>> demonstrate.
>>
>> I have tested this with Struts 1.1b2, and I'm sure it will work with 1.1b1
>> (If anyone requires a 1.0.x compatible, I can look at that also)
>>
>> I will get this project available as soon as I work through some
>> cvs issues
>> on sf.net:
>>
>> If anyone is REALLY itching to get their hands on it sooner, send me a
>> email.
>>
>> For those who were waiting, thanks for your patience.
>>
>>
>> James Mitchell
>> Software Engineer\Struts Evangelist
>> Struts-Atlanta, the "Open Minded Developer Network"
>> http://www.open-tools.org/struts-atlanta
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
>> <mailto:[EMAIL PROTECTED]>
>>
>>


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




-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re[2]: Composite jsp files

2002-08-28 Thread Dariusz Wojtas

Maybe I misunderstood you, but ...
Why can't you use the  tag?
Image file isnot send in the same response that the jsp/html
file is sent. Browser makes another call for the image
after parsing the html code.

Why don't you just print:

?
And it works perfectly with the  tags mentioned below.
There is also no need to change the response type in the middle of
writing to your output stream, because it is completely different call.
You just set it once.
And it will be served by separate servlet (here '/myImgServlet').

Dariusz Wojtas

Wednesday, August 28, 2002, 5:44:40 PM, you wrote:
LW> Thanks John &  Cliff (prior answer).

LW> But john, unfortunately I can't use the img
LW> src tag since the images are directly retrieved
LW> from a database. It doesn't make sense to
LW> first (temporarily) store the images and then
LW> use the img source tag. Instead, I directly
LW> print the images by using the
LW> response.getOutputStream (or something similar)
LW> and setting the contentType + writing the bytes.

LW> Cliff helped me out by showing me the 
LW> tags, which i think can be very usefull.

LW> If this does not work, you will hear me scream ;)

LW> Regards,

LW> Leonard

LW> - Original Message -
LW> From: "John Raley" <[EMAIL PROTECTED]>
LW> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
LW> Sent: Wednesday, August 28, 2002 4:23 PM
LW> Subject: Re: Composite jsp files


>> With Struts logic:equal tag:
>>
>> 
>>
>> Check the doc for the various logic:equal options.
>>
>> Leonard Wolters wrote:
>>
>> >Is it possible to concatenate jsp files to one ?
>> >
>> >The problem i have now is that tomcat / catalina
>> >is complaining when I write multiple times to
>> >the outputstream. A nice: java.lang.IllegalStateException:
>> >getOutputStream() has already been called for this response
>> >is shown to me.
>> >
>> >
>> >My question is if anyone know how to concat jsp files,
>> >or to dymanically create jsp.
>> >
>> >
>> >The problem is as follows: I have a certain jsp file which
>> >may / may not show an image. Based on a particular
>> >(custom made) tag an image should be shown or not.
>> >In both cases, the rest of the page should remain the
>> >same.
>> >
>> >Does anyone has tips / suggestions how to do this 
>> >
>> >T.i.a.
>> >
>> >Leonard
>> >
>> >
>>
>>
>> --
>> Check it out: Map -> JavaBean
>> http://dynclass.sourceforge.net/
>>
>>
>>
>>
>> --
>> To unsubscribe, e-mail:
LW> <mailto:[EMAIL PROTECTED]>
>> For additional commands, e-mail:
LW> <mailto:[EMAIL PROTECTED]>
>>




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




-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




RE: [Fwd: invalid e-mail address]

2002-08-16 Thread Dariusz Wojtas

Hi,
If anyone remembers these auto-reply messages from invitrogen, here is
what I just got from them:


Response (SMOGULL) - 08/16/2002 10:17 AM
Dear Dariusz,
Thank you for your email!  I have forwarded your email to our IT
department and they will look into the problem.  We will do what we
can.  

If you have users from @resgen.com or @lifetech.com, it is likely that
the Invitrogen autoreply is triggered from these names.  It is
difficult for us to know exactly who subscribed to your mailing list,
but if you could provide us with a list of the names, that would help
our IT department.

I'm sorry for the inconvenience.
Warm regards,
Scott

Customer (Dariusz Wojtas) - 08/16/2002 03:46 AM
Some of your users were registered to the struts-user mailing list.
And everyone that sends an email to that list, gets auto-reply
message from invitrogen, that such user doesn't exist.

Could you please check your mail logs what user it was?
It's very annoying to see these messages every time.

That user could easily be removed from the list, but it seems to be
little complicated. registration is under some other address, and
there must be some forwarding mechanism to invitrogen.
No one knows who should be unregistered.
Could you check that, please?

Dariusz Wojtas

=

Maybe that will help to unregister that person?

-- 
Best regards,
 Dariusz Wojtas  mailto:[EMAIL PROTECTED]


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




Re[2]: Welcome file and struts

2002-08-16 Thread Dariusz Wojtas

That topic was discussed here
  http://www.mail-archive.com/struts-user@jakarta.apache.org/msg34650.html

Darek

Friday, August 16, 2002, 12:30:00 PM, you wrote:
MD> I don´t want get impatient ;-), but usually there is a lot more action here!
MD> It´s just my luck that when I answer a question, everyone seems to be on
MD> vacation :-) !

MD> Has anyone else experienced this problem?  Is there a workaround?

MD> Thanks,

MD> Michael


MD> - Original Message -
MD> From: "Michael Delamere" <[EMAIL PROTECTED]>
MD> To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
MD> Sent: Friday, August 16, 2002 10:32 AM
MD> Subject: Welcome file and struts


>> Hi folks!
>>
>> I have got a question concerning the welcome file in the web.xml.  I have
>> tried the following:
>>
>>   
>> /index.do
>>   
>>
>> Could it be that tomcat has problems with this because the file doesn´t
>> physically exist?  The reason for assuming this is that index.vm (velocity
>> template) seems to work!?
>>
>> Could someone please give me some guidelines on how to get tomcat to load
MD> my
>> index.do on startup.
>>
>> Any help would be really appreciated.
>>
>> Thanks,
>>
>> Michael

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re[4]: Space problem

2002-08-14 Thread Dariusz Wojtas

Try to find what data are sent by the browser.
Set your form method to GET and check what appears
in your url after submit.

Your struts form gets data from there.
After this you should know if it is some misspelling problem
on your side or some deeply hidden problem in struts :-)

Darek

Wednesday, August 14, 2002, 4:24:53 PM, you wrote:
TS> it works fine if i dont use the struts way of displaying data on the 
TS> screen. ts pretty perplexing to me but i have tried this on different 
TS> screens with uncomplicated data..
TS> Regards,
TS> Tarun Sainanee

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re[2]: Space problem

2002-08-14 Thread Dariusz Wojtas

It is still not in quotes.
Otherways I don't see possibility to get partial data input by the
getter.
Check your output HTML code.

Try
 

Darek
  
Wednesday, August 14, 2002, 4:02:06 PM, you wrote:
TS> this is what i do
TS> > ">
TS> I have a corresponding getter method getcsObj() in a dataclass, the 
TS> multiple instances of which are in lvObj.

TS> Any clues?
TS> Regards,
TS> Tarun Sainanee

-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re: Space problem

2002-08-14 Thread Dariusz Wojtas

Are values for these radio buttons in quotes?
If not then they should be.
   value="Value 1"

Darek
   
Wednesday, August 14, 2002, 3:10:28 PM, you wrote:
TS> Hi,

TS> When i am trying to associate a value to my dynamically generated radio 
TS> buttons, the strings with spaces are accociated only uptil the space. 
TS> So if the getter method returns "Value 1" only "Value" gets associated 
TS> with the radio button.

TS> Any clues, you struts bonds?

TS> Tarun
-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re[2]: JDBC charset problem

2002-07-10 Thread Dariusz Wojtas

Hi Jose,

I had similar problem with Tomcat, MySQL and ISO-8859-2 encoding.
I had to do 2 things to solve that problem:
 1) set correct database encoding (MySQL doesn't support UTF yet)
That was easy to find.

 2) correctly decode characters sent by the browser
The problem is that most browsers encode characters using
encoding that you specify in the page (for example using META
tag), but they do not send info what encoding was used
when sending that encoded data to the server.
If that information is not provided - server uses default
encoding, which is ISO-8859-1.
And at this point your struts forms may contain messed data.

To give the server some hint what encoding to use - try to use
filters. Look at :
 SetCharacterEncodingFilter
that comes with Tomcat examples (examples/web-inf/classes/filters)
Very easy to use or extend to your needs.
It only checks if characterEncoding was set, and if not - it sets
the default encoding specified in the configuration.

That solved my problem.

Dariusz Wojtas

Wednesday, July 10, 2002, 6:00:21 PM, you wrote:
JCRR> My application Server is Jakarta Tomcat and I 'm working with Linux 
JCRR> Mandrake 8.2.
JCRR> My DB is PostgreSQL.

JCRR> Rajesh Kalluri wrote:

>>Jose,
>>
>>What is your application Server and what Platform are you work with
>>(Solaris/Linux/Windows).
>>
>>Its most probably not setting up correctly with NLS_LANG settings in the
>>profile of the user you web server/app server is running as.
>>
>>Also if you are running Oracle as ur db make sure you have nls_charset12.jar
>>in your webserver classpath.
>>
>>hth
>>
>>Rajesh
>>
>>-Original Message-
>>From: Jose Carlos Rubia Raya [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, July 10, 2002 6:15 AM
>>To: [EMAIL PROTECTED]
>>Subject: JDBC charset problem
>>
>>
>>Hello
>>
>>I have a little program.
>>In some forms I introduce words like "d'enginyeria en informàtica" and I
>>store this words in my DB.
>>After, when I retrieve this words from the DB to show them in a form the
>>words appear like "d?enginyeria en inform?tica".
>>
>>How can I configure my JDBC to resolve this problem???
>>
>>Thanks
>>
>>
>>--
>>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]>
>>
>>
>>  
>>




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




-- 
Best regards,
 Dariusz Wojtas mailto:[EMAIL PROTECTED]


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




Re: form input in utf-8

2002-06-27 Thread Dariusz Wojtas

Thursday, June 27, 2002, 4:25:02 PM, you wrote:
SN> Subject: form input in utf-8
SN> From: Torgeir Veimo <[EMAIL PROTECTED]>
SN>  ===
SN> What is the easiest way of telling struts that a form input is in utf-8 
SN> format?

SN> I clearly see that the input comes in as utf-8, but it is interpreted as 
SN> isolatin-1.

I have the same problem.
I need the input coming from the browser to be interpreted as
iso-8859-2 characters, but it is interpreted as isolatin-1.
Is there any good solution for that?

Darek


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




Re[2]: atction-mappings and default action path

2002-05-01 Thread Dariusz Wojtas

> we would like to have a default action at the end of our mappings.
> So if none of the other paths matched that the last or default one would be
> executed.
> As far as I know ther is basically no fist or last. But still there must be
> a solouton something like:
> 
> 
> .
> .
> .
> .
>  .
> .
> actionClass="my.actionClass"
> .
> ./>
> 
> 
> 
> How can something like this be done??

Isn't the property "unknown" for that?
You may create 1 action with unknown set to true.
That will be the default action if no other action matches.
 unknown="true"
Example:




Darek


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




RE: Caching in IE

2002-04-19 Thread Dariusz Wojtas

Don't know if it will help with newest IE, but it worked for me some time ago,
when I experienced similar problem.

response.setHeader("Cache-Control","no-store, no-cache, 
must-revalidate, post-check=0, pre-check=0"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy 
server

The first line sends extended header, specific to IE.
I found that some time ago on some PHP group.

 Dariusz Wojtas

At 03:36 2002-04-19 -0600, you wrote:
>Well, what I am looking for is simple. I want my pages to pass through the
>controller. But, when IE caches a page it brings up the cached page and
>completely bypasses the controler(Action). I have enabled the no-cache
>mechanism in struts. But, it still seems to happen. The only way I've been
>able to solve it is to change IE settings. That is not an option when a site
>goes live. Telling the public they have to change their browser settings
>won't do :-).
>
>Brandon Goodin


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




Re: Preview OReilly Struts Chapters Online - Soon

2002-03-28 Thread Dariusz Wojtas

+ EJBs and Addressing performance, please!

At 09:03 2002-03-29 +0100, you wrote:
>so am I !
>
>
> > i vote for the struts design strategies, packaging, and taglibs
> > as the most interesting.
> >
> > rjsjr
> >
> > > Chapter 2. The Web Server/Servlet Container Relationship
> > > Chapter 3. Overview of the Struts Framework
> > > Chapter 4. Configuring web.xml and struts-config.xml
> > > Chapter 5. Struts Controller Components
> > > Chapter 6. Struts Model Components
> > > Chapter 8. Custom Tag Libraries
> > > Chapter 10. Exception Handling
> > > Chapter 12. Internationalization and Localization
> > > Chapter 13. Struts and Enterprise JavaBeans (EJB)
> > > Chapter 16. Using Alternate Presentation Technologies
> > > Chapter 18. Logging in a Struts Application
> > > Chapter 19. Addressing Performance
> > > Chapter 20. Packaging your Struts Application
> > > Chapter 21. Struts Design Strategies


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




RE: Form beans in session scope

2002-03-19 Thread Dariusz Wojtas

I set such properties in my action classes too.
And it is enough.
I don't set that bean to it's scope again.
And everything works perfectly.

That's probably because the bean is referenced all the time
from the action class and from the session object.
Hope I am not wrong.

 Darek

At 16:03 2002-03-19 +, you wrote:
>If you're manually calling your formbean's "setter" methods then you'll need
>to then re-add the formbean to the session (or request or whatever scope you
>are using).  I don't know what you're trying to do, but I've never manually
>called any such setter methods.  They're usually called automatically when
>you submit a form to an Action class (i.e. the action-mapping element of
>struts-config tells Struts which formbean to populate for the specified
>action and what scope to give it).
>
>I'd stick with request scope for formbeans, but it does not sound like you
>are using them in the conventional way - so maybe some more detail on what
>you're trying to do would help.
>
>Lindsay
>
>  -Original Message-
>From:   Kevin J. Turner [mailto:[EMAIL PROTECTED]]
>Sent:   19 March 2002 15:26
>To: Struts Users Mailing List
>Subject:Form beans in session scope
>
>I have configured my struts-config file to keep my form bean in
>session scope. I don't know if this is good practice, but I wasn't
>having much luck with the request scope.
>
>In many of my action classes, if have to get a reference to my form
>bean to do some business logic processing. I do so by doing the
>following:
>
>MyFormBean mfb = (MyFormBean) form
>
>Then I call some methods
>
>mfb.setAlpha("beta");
>mfb.setGamma("delta");
>etc..
>
>At this point do I need to explicitly re-add/reset the form bean by
>doing something like this:
>
>session.setAttribute(mapping.getAttribute(), mfb);
>
>Or does calling the methods automatically update the form bean thats
>in the session?
>
>


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




How to avoid session conflict in 2 windows?

2002-03-04 Thread Dariusz Wojtas

I have some struts app that works perfectly, but
I may have some problems if the user opens another
window in the same session (Ctrl + N).
The browser introduces itself with the same cookie
in both windows.

Is there any way to avoid this?
I was thinking about using filters and 2 cookies.
1st cookie would be used to keep the session, and the
2nd would be just for window id.
After every request server would change the value of the second
cookie (for example System.currentMillis()) and save it's value
in the session.
Next time I would always check session + the millis.
But I am not sure if this would work.

Is there anything in struts that would help?

    Dariusz Wojtas


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




RE: Handling exceptions

2002-03-04 Thread Dariusz Wojtas

OK, that was helpful - now I see it from different perspective.
But what if somebody argues that Throwable catches
also JVM exceptions, like ThreadDeath or OutOfMemory
and similar? Should I care about that or not?
If not then why?

 Dariusz Wojtas


At 13:14 02-03-04 -0500, you wrote:
>Catching Throwable will catch both Exceptions and Errors. Catching Exception
>will only catch Exceptions.
>You will want to catch Exceptions *AND* Errors to be bullet-proof.
>We were catching Exception for a while and we thought we were covered, until
>one day we got (due to some weird deployment) a NoClassDefFoundError, which
>of course escaped the "catch Exception" and barfed right in front of the
>user in their browser as an ugly 505.
>
>So I think catch Throwable should be your final catch-all after you have
>handled all your "normal" exceptions.
>
>Good luck,
>Hani.


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




Handling exceptions

2002-03-04 Thread Dariusz Wojtas

Almost every of my action classes has the try/catch block.
And I catch different types of exceptions that may be thrown
+ Throwable at the end

} catch ( ... ) {
log(...);
// add error;
} catch (Throwable t) {
log(...);
// add error

I found that in struts example apps, and in the struts source code,
there is always check for Throwable at the end.

But recently I was told that I should not use Throwable because it
is too high level, but Exception.
And now I am confused. May I use it or not?

Why does Struts use Throwable and not Exception?

Dariusz Wojtas


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