You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by vasudevrao gupta <va...@wipro.com> on 2004/01/11 08:07:18 UTC

Exception handling in struts

Hi All,

Please give me some inputs on how to handle exceptions in struts.
It would be easier for me understand with a sample code.

Regards
VasudevRaoGupta


Confidentiality Notice 

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or Mailadmin@wipro.com immediately
and destroy all copies of this message and any attachments.

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


DB to UI data passage

Posted by shankarr <sh...@india.adventnet.com>.
Hi!
I want to pass the result of a db query to my JSP page?

It would be great to get an example for the same.
i have seen the archive and there are some hints by Mr. Sumit.
But, I have not been able to understand the flow in its entirety.
My question is as follows :
Once I get the resultset and store it in the ArrayList, how do I pass the 
same to my JSP file?
The db interaction will be done in my XXXAction file.

Do let me know if there is a better way of doing the same.
My requirement is to show in the JSP page, the list of entries in the DB 
along with their values(basically, output of a select * from TestTable)

Thanks in advance,
Shanky


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


Re: Exception handling in struts

Posted by Martin Gainty <mg...@hotmail.com>.
Thanks Robert
your suggestion worked
Any idea on what a "dig error" is?
Thanks again,
-Martin
----- Original Message -----
From: "Robert Taylor" <rt...@mulework.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>
Sent: Sunday, January 11, 2004 11:36 AM
Subject: RE: Exception handling in struts


> Hmmmm. When I cut and paste the url (both lines because it was split in
the
> email message) it works for me.
>
> Try this:
>
> Cut and paste this into the browser address window:
>
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
>
> then...cut and append the rest of the url into the browser address window:
> he_org&restrict=&exclude=&words=handle+exceptions
>
> I usually do this when the url wraps in me email client.
>
> robert
>
>
>
> > -----Original Message-----
> > From: Martin Gainty [mailto:mgainty@hotmail.com]
> > Sent: Sunday, January 11, 2004 10:32 AM
> > To: Struts Users Mailing List; vasudevrao.gupta@wipro.com;
> > rtaylor@mulework.com
> > Subject: Re: Exception handling in struts
> >
> >
> > Robert
> > Attempting to link to the first link..
> >
> > ht://Dig error
> > htsearch detected an error. Please report this to the webmaster of this
> > site. The error message is:
> >
> > Unable to read configuration file
> > ???-Martin
> > ----- Original Message -----
> > From: "Robert Taylor" <rt...@mulework.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
> > <va...@wipro.com>
> > Sent: Sunday, January 11, 2004 8:45 AM
> > Subject: RE: Exception handling in struts
> >
> >
> > >
> > http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_ja
> > karta_apac
> > > he_org&restrict=&exclude=&words=handle+exceptions
> > >
> > >
> > http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exce
> > ption+Hand
> > > ling
> > >
> > > robert
> > >
> > > > -----Original Message-----
> > > > From: vasudevrao gupta [mailto:vasudevrao.gupta@wipro.com]
> > > > Sent: Sunday, January 11, 2004 2:07 AM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: Exception handling in struts
> > > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > Please give me some inputs on how to handle exceptions in struts.
> > > > It would be easier for me understand with a sample code.
> > > >
> > > > Regards
> > > > VasudevRaoGupta
> > > >
> > > >
> > > > Confidentiality Notice
> > > >
> > > > The information contained in this electronic message and any
> > > > attachments to this message are intended
> > > > for the exclusive use of the addressee(s) and may contain
> > > > confidential or privileged information. If
> > > > you are not the intended recipient, please notify the sender at
> > > > Wipro or Mailadmin@wipro.com immediately
> > > > and destroy all copies of this message and any attachments.
> > > >
> > >
> ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

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


RE: Exception handling in struts

Posted by Mike Duffy <md...@yahoo.com>.
I think it is best to limit the number of exceptions thrown.

Best Practices for Exception Handling
http://www.onjava.com/pub/a/onjava/2003/11/19/exceptions.html

Mike


--- Robert Taylor <rt...@mulework.com> wrote:
> Hmmmm. When I cut and paste the url (both lines because it was split in the
> email message) it works for me.
> 
> Try this:
> 
> Cut and paste this into the browser address window:
> http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
> 
> then...cut and append the rest of the url into the browser address window:
> he_org&restrict=&exclude=&words=handle+exceptions
> 
> I usually do this when the url wraps in me email client.
> 
> robert
> 
> 
> 
> > -----Original Message-----
> > From: Martin Gainty [mailto:mgainty@hotmail.com]
> > Sent: Sunday, January 11, 2004 10:32 AM
> > To: Struts Users Mailing List; vasudevrao.gupta@wipro.com;
> > rtaylor@mulework.com
> > Subject: Re: Exception handling in struts
> >
> >
> > Robert
> > Attempting to link to the first link..
> >
> > ht://Dig error
> > htsearch detected an error. Please report this to the webmaster of this
> > site. The error message is:
> >
> > Unable to read configuration file
> > ???-Martin
> > ----- Original Message -----
> > From: "Robert Taylor" <rt...@mulework.com>
> > To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
> > <va...@wipro.com>
> > Sent: Sunday, January 11, 2004 8:45 AM
> > Subject: RE: Exception handling in struts
> >
> >
> > >
> > http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_ja
> > karta_apac
> > > he_org&restrict=&exclude=&words=handle+exceptions
> > >
> > >
> > http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exce
> > ption+Hand
> > > ling
> > >
> > > robert
> > >
> > > > -----Original Message-----
> > > > From: vasudevrao gupta [mailto:vasudevrao.gupta@wipro.com]
> > > > Sent: Sunday, January 11, 2004 2:07 AM
> > > > To: 'Struts Users Mailing List'
> > > > Subject: Exception handling in struts
> > > >
> > > >
> > > >
> > > > Hi All,
> > > >
> > > > Please give me some inputs on how to handle exceptions in struts.
> > > > It would be easier for me understand with a sample code.
> > > >
> > > > Regards
> > > > VasudevRaoGupta
> > > >
> > > >
> > > > Confidentiality Notice
> > > >
> > > > The information contained in this electronic message and any
> > > > attachments to this message are intended
> > > > for the exclusive use of the addressee(s) and may contain
> > > > confidential or privileged information. If
> > > > you are not the intended recipient, please notify the sender at
> > > > Wipro or Mailadmin@wipro.com immediately
> > > > and destroy all copies of this message and any attachments.
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes
http://hotjobs.sweepstakes.yahoo.com/signingbonus

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


RE: Exception handling in struts

Posted by Robert Taylor <rt...@mulework.com>.
Hmmmm. When I cut and paste the url (both lines because it was split in the
email message) it works for me.

Try this:

Cut and paste this into the browser address window:
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac

then...cut and append the rest of the url into the browser address window:
he_org&restrict=&exclude=&words=handle+exceptions

I usually do this when the url wraps in me email client.

robert



> -----Original Message-----
> From: Martin Gainty [mailto:mgainty@hotmail.com]
> Sent: Sunday, January 11, 2004 10:32 AM
> To: Struts Users Mailing List; vasudevrao.gupta@wipro.com;
> rtaylor@mulework.com
> Subject: Re: Exception handling in struts
>
>
> Robert
> Attempting to link to the first link..
>
> ht://Dig error
> htsearch detected an error. Please report this to the webmaster of this
> site. The error message is:
>
> Unable to read configuration file
> ???-Martin
> ----- Original Message -----
> From: "Robert Taylor" <rt...@mulework.com>
> To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
> <va...@wipro.com>
> Sent: Sunday, January 11, 2004 8:45 AM
> Subject: RE: Exception handling in struts
>
>
> >
> http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_ja
> karta_apac
> > he_org&restrict=&exclude=&words=handle+exceptions
> >
> >
> http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exce
> ption+Hand
> > ling
> >
> > robert
> >
> > > -----Original Message-----
> > > From: vasudevrao gupta [mailto:vasudevrao.gupta@wipro.com]
> > > Sent: Sunday, January 11, 2004 2:07 AM
> > > To: 'Struts Users Mailing List'
> > > Subject: Exception handling in struts
> > >
> > >
> > >
> > > Hi All,
> > >
> > > Please give me some inputs on how to handle exceptions in struts.
> > > It would be easier for me understand with a sample code.
> > >
> > > Regards
> > > VasudevRaoGupta
> > >
> > >
> > > Confidentiality Notice
> > >
> > > The information contained in this electronic message and any
> > > attachments to this message are intended
> > > for the exclusive use of the addressee(s) and may contain
> > > confidential or privileged information. If
> > > you are not the intended recipient, please notify the sender at
> > > Wipro or Mailadmin@wipro.com immediately
> > > and destroy all copies of this message and any attachments.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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


Re: Exception handling in struts

Posted by Martin Gainty <mg...@hotmail.com>.
Robert
Attempting to link to the first link..

ht://Dig error
htsearch detected an error. Please report this to the webmaster of this
site. The error message is:

Unable to read configuration file
???-Martin
----- Original Message -----
From: "Robert Taylor" <rt...@mulework.com>
To: "Struts Users Mailing List" <st...@jakarta.apache.org>;
<va...@wipro.com>
Sent: Sunday, January 11, 2004 8:45 AM
Subject: RE: Exception handling in struts


>
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
> he_org&restrict=&exclude=&words=handle+exceptions
>
>
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exception+Hand
> ling
>
> robert
>
> > -----Original Message-----
> > From: vasudevrao gupta [mailto:vasudevrao.gupta@wipro.com]
> > Sent: Sunday, January 11, 2004 2:07 AM
> > To: 'Struts Users Mailing List'
> > Subject: Exception handling in struts
> >
> >
> >
> > Hi All,
> >
> > Please give me some inputs on how to handle exceptions in struts.
> > It would be easier for me understand with a sample code.
> >
> > Regards
> > VasudevRaoGupta
> >
> >
> > Confidentiality Notice
> >
> > The information contained in this electronic message and any
> > attachments to this message are intended
> > for the exclusive use of the addressee(s) and may contain
> > confidential or privileged information. If
> > you are not the intended recipient, please notify the sender at
> > Wipro or Mailadmin@wipro.com immediately
> > and destroy all copies of this message and any attachments.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>

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


RE: Exception handling in struts

Posted by Robert Taylor <rt...@mulework.com>.
http://www.mail-archive.com/cgi-bin/htsearch?config=struts-user_jakarta_apac
he_org&restrict=&exclude=&words=handle+exceptions

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Struts+Exception+Hand
ling

robert

> -----Original Message-----
> From: vasudevrao gupta [mailto:vasudevrao.gupta@wipro.com]
> Sent: Sunday, January 11, 2004 2:07 AM
> To: 'Struts Users Mailing List'
> Subject: Exception handling in struts
>
>
>
> Hi All,
>
> Please give me some inputs on how to handle exceptions in struts.
> It would be easier for me understand with a sample code.
>
> Regards
> VasudevRaoGupta
>
>
> Confidentiality Notice
>
> The information contained in this electronic message and any
> attachments to this message are intended
> for the exclusive use of the addressee(s) and may contain
> confidential or privileged information. If
> you are not the intended recipient, please notify the sender at
> Wipro or Mailadmin@wipro.com immediately
> and destroy all copies of this message and any attachments.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


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