Re: Specific Exception Handling

2016-03-22 Thread Lukasz Lenart
2016-03-22 21:13 GMT+01:00 José Antonio Delgado Trujillo : > In the example of exception - handling explains how to configure an > specific exception for an action. > > It is simple, only write the exception-mapping into the action node. But i > don't know how it works and wh

RE: Specific Exception Handling

2016-03-22 Thread Martin Gainty
Date: Tue, 22 Mar 2016 20:13:37 + Subject: Specific Exception Handling From: jadt...@gmail.com To: user@struts.apache.org In the example of exception - handling explains how to configure an

Re: Specific Exception Handling

2016-03-22 Thread José Antonio Delgado Trujillo
OK, I saw in the github the URL cause actions exceptions in the index,jsp but i dont't still understand the two result in the actionspecificexption. 2016-03-22 20:13 GMT+00:00 José Antonio Delgado Trujillo : > In the example of exception - handling explains how to configure an &g

Specific Exception Handling

2016-03-22 Thread José Antonio Delgado Trujillo
In the example of exception - handling explains how to configure an specific exception for an action. It is simple, only write the exception-mapping into the action node. But i don't know how it works and why we need two result nodes. [image: Imágenes integradas 1] I understood that i

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
I need one more help regarding performance tuning for struts2, do you have any latest good link for it. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 On Fri, Jun 21

Re: Struts2 Exception Handling

2013-06-21 Thread Sreekanth S. Nair
Yeah lukasz, you are correct i was working with devMode set to true, when i made it to false the custom exception page is coming.. Thanks a lot for reminding me this simple mistake. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egove

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
Do you have devMode set to true? Which stack do you use in struts.xml? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ 2013/6/21 Sreekanth S. Nair : > Okay, but the error page i'm getting is default error page not the custom > error page (more over i'm not using exceptionStack in m

Re: Struts2 Exception Handling

2013-06-20 Thread Sreekanth S. Nair
Okay, but the error page i'm getting is default error page not the custom error page (more over i'm not using exceptionStack in my custom error page) -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments.org Mob : 9980078913 ---

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
There is nothing like CatchAll in Struts 2, you define result per exception type so all other exceptions than SecurityBreachException will be directed to result "error" and error.jsp prints the stacktrace as well: Exception Details: so maybe remove that line and your are done. Re

Re: Struts2 Exception Handling

2013-06-20 Thread Sreekanth S. Nair
I already have the following settings in my struts.xml /error/genericError.jsp /error/accessdenied.jsp /error/invalidrequest.jsp /error/pageNotFound.jsp -- Thanks & Regards Srikanth Software Developer e

Re: Struts2 Exception Handling

2013-06-20 Thread Sreekanth S. Nair
Hi Lukasz, Thanks for your replay, i did the same way only, but there are some exception still going uncaught and showing the stacktrace to view. There was something called CatchAll, can you please tell me how to do it. -- Thanks & Regards Srikanth Software Developer -

Re: Struts2 Exception Handling

2013-06-20 Thread Lukasz Lenart
2013/6/21 Sreekanth S. Nair : > Hi, > Can anyone point me a tutorial or reference for how to handle exception > (uncaught or all exception). There are so many tutorial available online > but all are different. http://struts.apache.org/development/2.x/docs/exception-handling.html Regards --

Struts2 Exception Handling

2013-06-20 Thread Sreekanth S. Nair
Hi, Can anyone point me a tutorial or reference for how to handle exception (uncaught or all exception). There are so many tutorial available online but all are different. -- Thanks & Regards Srikanth Software Developer eGovernments Foundations www.egovernments

Re: Right way for exception handling

2011-11-18 Thread Eric Lentz
Make sure that devMode is false. The behavior is a bit different if in devMode.

Re: Right way for exception handling

2011-11-17 Thread Li Ying
good practice. > > I need to write a lot just to get back to default container behavior (500 > status and logging): > > 1) Create _new_ stack to set logEnabled and logLevel > 2) Configure package to use it > 3) Add global error result > 4) Add global exception handli

RE: Right way for exception handling

2011-11-11 Thread Ilya Kazakevich
Thank you. > I'm also not sure I'd purposefully send a 500 status > code if I had the choice, but I guess that's up to you. The browser > typically gives back a pretty ugly page for such a return status, IMO. Only IE does this. And only if "friendly" errors are enabled. I need 500 error because

Re: Right way for exception handling

2011-11-11 Thread Eric Lentz
> 1) Why do not struts passes exception to container by default? Could I configure it to do so? I don't have time to answer all of your questions well, but you may want to look here: http://struts.apache.org/2.2.1/docs/httpheader-result.html That result type will permit the sending of any code

Right way for exception handling

2011-11-11 Thread Ilya Kazakevich
logging): 1) Create _new_ stack to set logEnabled and logLevel 2) Configure package to use it 3) Add global error result 4) Add global exception handling 5) Create JSP with "status 500" instead of my 500.html page Is not it too big for such simple task? Ilya Kazakevich, Developer Je

RE: Global Exception Handling in struts2

2009-07-20 Thread surya.mulakala
Re: Global Exception Handling in struts2 Did you see the rest of the comment I put in JIRA? Dave surya.mulak...@wipro.com wrote: > Hi, > > We are using struts2.1.6, Spring and Hibernate in our application. For > handling exceptions in application, we are using global exception > mapping

Re: Global Exception Handling in struts2

2009-07-20 Thread Dave Newton
this error from application? below i' m providing the struts.xml configuration for global exception handling ExceptionHandle /> main.error Thanks and Regards, Surya Please do not print this email unless it is absolutely necessary. The information cont

Re: Global Exception Handling in struts2

2009-07-20 Thread surya.mulakala
analyze the problem in debug mode of weblogic server, it is coming from interceptor WebAppServletContext.execute(ServletRequestImpl, ServletResponseImpl) line: 2032 . can anybody help me to remove this error from application? below i' m providing the struts.xml configuration for global exce

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread NR031
apache.org/2.0.11/docs/exception-configuration.html , >> but it >> doesn't contain a sample example that demonstrate the Exception >> Handling. I >> am new to Struts so please explain with an example. >> >> >> Thanks in advance, >> -- >

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Lukasz Lenart
2009/4/27 NR031 : >   I am using Struts 2.0.11 and NetBeans 6.1. Is there any way to handle > exception in Struts 2? Just define global result and put entries for given exceptions in struts.xml, like below 405 The requested method is unsupport

Re: Exception Handling in Struts 2.0.11

2009-04-27 Thread Terry Gardner
x27;t contain a sample example that demonstrate the Exception Handling. I am new to Struts so please explain with an example. Thanks in advance, -- View this message in context: http://www.nabble.com/Exception-Handling-in-Struts-2.0.11-tp23252025p23252025.html Sent from the Struts - User ma

Exception Handling in Struts 2.0.11

2009-04-27 Thread NR031
ain a sample example that demonstrate the Exception Handling. I am new to Struts so please explain with an example. Thanks in advance, -- View this message in context: http://www.nabble.com/Exception-Handling-in-Struts-2.0.11-tp23252025p23252025.html Sent from the Struts - User mailing list archi

RE: exception handling

2009-01-19 Thread doahh
the database. The point I was > trying to make was to use the PRG pattern. > > > > >> Date: Mon, 19 Jan 2009 03:27:57 -0800 >> From: ga...@prodia.co.uk >> To: user@struts.apache.org >> Subject: RE: exception handling >> >> >> I must be

RE: exception handling

2009-01-19 Thread Andy
pache.org > Subject: RE: exception handling > > > I must be misunderstanding something, is that not what I am already doing my > chaining to another action? > > > > Andy Hahn wrote: > > > > Regarding to the first responder - you could take this a step furt

RE: exception handling

2009-01-19 Thread doahh
; After Post)‏. > > > > >> Date: Sun, 18 Jan 2009 06:24:24 -0800 >> From: ga...@prodia.co.uk >> To: user@struts.apache.org >> Subject: Re: exception handling >> >> >> I know this is slightly different from the way you are trying it but this >

A different exception handling question

2009-01-18 Thread Andy
Does anyone know why you can't pass the exceptionStack from a global result to an action class? Other parameters pass fine, just not that one: Ex. error ${exceptionStack} I get the following exception: java.lang.ArrayIndexOutOfBoundsException: 8192

RE: exception handling

2009-01-18 Thread Andy
18 Jan 2009 06:24:24 -0800 > From: ga...@prodia.co.uk > To: user@struts.apache.org > Subject: Re: exception handling > > > I know this is slightly different from the way you are trying it but this is > the way I am currently doing it is: > > <global-exception-mappi

Re: exception handling

2009-01-18 Thread doahh
thin logException, write the exception to an email and the database but you can of course do what you like with it. HTH JJ__ wrote: > > Hello, > I am trying to implement declarative exception handling for all the > possible exceptions. The problem is that in this way I only catch some &

exception handling

2009-01-17 Thread J J
Hello, I am trying to implement declarative exception handling for all the possible exceptions. The problem is that in this way I only catch some exceptions (not all of them) and I cant get its stack trace nor its message(it is only rendered the rest of my JSP but not the information about the

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
curs. Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093995.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Global exception handling prevents logging

2008-12-19 Thread Marsman
on occurs. Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21093981.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubsc

Re: Global exception handling prevents logging

2008-12-18 Thread Paul Benedict
in context: > http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21050585.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: user-u

Global exception handling prevents logging

2008-12-17 Thread Marsman
trace even. How can I get both, the error page and a logfile entry? Thanks, Titus -- View this message in context: http://www.nabble.com/Global-exception-handling-prevents-logging-tp21050585p21050585.html Sent from the Struts - User mailing list archive at Nabbl

[S2] JSP Exception handling

2008-09-25 Thread Diego Manilla Suárez
Hi. It seems that Struts 2 is ignoring the JSP standard approach to exception handling. If I write a JSP that throws an exception, the error JSP is not loaded even if I put a page directive with errorPage pointing to a JSP with isErrorPage="true". The exception is written to stdout.

Re: uniform exception handling

2008-05-16 Thread Jeromy Evans
1. In struts.xml, use global-exception-mappings to define mappings that catch-all exceptions of interest. result="methodNotSupported"/> result="methodNotSupported"/> 2. In struts.xml, define global-results that are referenced by the global-exception-mappings. These are sta

uniform exception handling

2008-05-14 Thread Jakub Milkiewicz
Hi i would like to know what is the best practice to handle exceptions in Struts based applications. I have defined ExceptionMappingInterceptor aka exception interceptor and it works but it can not handle all kind of exceptions. I would like to have various exceptions that can occur in various pa

Exception handling

2008-01-12 Thread Zhang, Larry (L.)
Since Struts offers an exception Handler (org.apache.struts.action.ExceptionHandler ), then I got a question: in my action, should I try and catch the exception (in the execute's method) that may be throwed in business layer and forward to an ActionForward? Or don't do any try and cath in the act

global exception handling

2007-12-31 Thread Srinivas Surapaneni
> > Is there a way to go the current page when an exception occurs? > > I don' tknow the page name. I want to get the current page dynamically. I > want to define a globally which appplied to all actions > > Thanks > srinivas >

RE: Exception Handling keeping user input

2007-12-26 Thread Jeremy JGR. Grumbach
/ExceptionMappingInterceptor.html For example, in my case, it is a global exception: Hope it helps, Jeremy -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Saturday, December 22, 2007 8:33 PM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
pond M-- - Original Message - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, December 22, 2007 2:32 PM Subject: Re: Exception Handling keeping user input Jeremy, how do you control which result is chosen? Adam Jeremy JG

Re: Exception Handling keeping user input

2007-12-22 Thread Martin Gainty
age - From: "Adam Hardy" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, December 22, 2007 2:32 PM Subject: Re: Exception Handling keeping user input > Jeremy, > how do you control which result is chosen? > > Adam > > Jeremy JGR. Grum

Re: Exception Handling keeping user input

2007-12-22 Thread Adam Hardy
mbach [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 10:28 AM To: Struts Users Mailing List Subject: RE: Exception Handling keeping user input Yes I think it's more what I had in mind. My three requests were: 1) Go back to the "add" page without losing user input 2)

RE: Exception Handling keeping user input

2007-12-20 Thread Jeremy JGR. Grumbach
ing List Subject: RE: Exception Handling keeping user input Yes I think it's more what I had in mind. My three requests were: 1) Go back to the "add" page without losing user input 2) Display an error message above the "add" form 3) Do this in a generic way => the business

RE: Exception Handling keeping user input

2007-12-19 Thread Jeremy JGR. Grumbach
(and I hope I will have something to post :)) Thanks! Jeremy -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 19, 2007 12:06 AM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input Jeremy JGR. Grumbach wrote: >

Re: Exception Handling keeping user input

2007-12-18 Thread Gary Affonso
you want a generic exception handling solution I'd look at two things: 1) AOP using Spring 2) The S2 Exception interceptor Spring AOP can be configured to give advice to all your actions. Basically the advice just catches exceptions and then returns a result code. That keeps any exception handl

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
hing... Jeremy -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 11:30 AM To: Struts Users Mailing List Subject: Re: Exception Handling keeping user input I don't know how to do this but a generic solution sounds desirable (and technical

Re: Exception Handling keeping user input

2007-12-18 Thread Adam Hardy
l searching for a more generic solution during next days, and if I don't find it, I will of course use your solution or the one from Dave :) Jeremy -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 6:42 AM To: Struts Users Mailing L

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
eneric solution during next days, and if I don't find it, I will of course use your solution or the one from Dave :) Jeremy -Original Message- From: Gary Affonso [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 6:42 AM To: Struts Users Mailing List Subject: Re: Exception H

RE: Exception Handling keeping user input

2007-12-18 Thread Jeremy JGR. Grumbach
fields still filled in because the forward was "input". Not sure to be clear but that's what I hope to be able to do in Struts 2. Jeremy -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 7:17 PM To: Struts Users Mailing List Subjec

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
To follow up on my previous post, here's some code from a "showForm" action that does exactly what I described... public void prepare() { if(session.get(SignUpFormBean.SESSION_KEY) == null) { // they're here for the first time. do nothing (leave the signUpFormBean model

Re: Exception Handling keeping user input

2007-12-17 Thread Gary Affonso
Jeremy JGR. Grumbach wrote: Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column "name" of the "car model" table must be unique. The user wants to add a "car model" in the database, thus he has an "add screen" containing all the field

Re: Exception Handling keeping user input

2007-12-17 Thread Dave Newton
Sure; catch the exception in your Action, which IMO is what should happen anyway. This is a gray area of design for me; I am not convinced that this is "exceptional" behavior. That aside, business-level exceptions should (IMO, of course :) be caught by actions--*real* exceptions, like a database e

Exception Handling keeping user input

2007-12-17 Thread Jeremy JGR. Grumbach
Hi, Let's take the following scenario: we have a database which manage car models (for example Dogde Viper). The column "name" of the "car model" table must be unique. The user wants to add a "car model" in the database, thus he has an "add screen" containing all the fields of the "car model" and

Re: Global exception handling

2007-10-12 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Once this servlet is loaded, it effects struts global > exception handling. Defined global exceptions are not > caught by struts. If I would disable load of the > servlet, global exceptions are handled normally. Does > anyone know what could cause thi

Global exception handling

2007-10-12 Thread dmitry . rubenchik
Hi, I see some strange behavior in handling global exceptions in RAD 7.0. I load my InitSrvlet through WEB.xml (-1) to perform an app initialization from property files. Once this servlet is loaded, it effects struts global exception handling. Defined global exceptions are not caught by struts

Re: Exception Handling and Logging

2007-10-12 Thread Richard Sayre
Hi Paul, I know its been a while but I am now trying to log my exceptions. Previously I was redirecting to a JSP and outputting the error. A requirement has come up where the client does not want the user seeing any stack traces etc. So I want to log the exception in the action and then redirect

Exception Handling from Model to Controller

2007-10-09 Thread vijay bhaskar
Hi i m doing one application where i have written some model classes where it may throw Exceptions...that exceptios has to be caught and send back to controller...other wise that exeptions how can be displayed to user on UI. -- Bhaskar

Exception Handling from Model classe to Controller

2007-10-09 Thread vijay bhaskar
Hi How to handle some Exceptions occured in Model class.how that exceptions will be return to the conroller.. -- Bhaskar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: global exception handling - struts sometimes ignores my setting in struts-config, what's wrong?

2007-08-14 Thread Marek Cupak
rset=UTF-8" >> pageEncoding="UTF-8"%> >> >> >> >> >> >> <% throw new Exception(); %> >> >&g

Re: global exception handling - struts sometimes ignores my setting in struts-config, what's wrong?

2007-08-13 Thread Zarar Siddiqi
pikeScriptletThrowingEx.jsp: > > <%@ page language="java" contentType="text/html; charset=UTF-8" > pageEncoding="UTF-8"%> > > > > > > <% throw new Exception(); %> > >

global exception handling - struts sometimes ignores my setting in struts-config, what's wrong?

2007-08-13 Thread Marek Cupak
s the ErrorPage.jsp not displayed? -- View this message in context: http://www.nabble.com/global-exception-handling---struts-sometimes-ignores-my-setting-in-struts-config%2C-what%27s-wrong--tf4261735.html#a12127828 Sent from the Struts - User mailing list archive at Nabble.com. ---

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
In my interceptor stack i added this parameter: true I assume it is using either commons logging or log4j but I'm not sure where the log file is or how to manipulate what information goes into the log file. On 8/6/07, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Richard Sayr

Re: Exception Handling and Logging

2007-08-06 Thread Dave Newton
--- Richard Sayre <[EMAIL PROTECTED]> wrote: > Do I open a file stream on the JSP page or is there a > better way to log this information? Use commons-logging and / or Log4J? d. Need a vacation? Get gr

Re: Exception Handling and Logging

2007-08-06 Thread Richard Sayre
I set up my application to throw the Exceptions back and I am using Exception mapping to redirect the user to an error page. The error page displays the exception and stack trace. How do I log this to a file instead? Do I open a file stream on the JSP page or is there a better way to log this in

Re: Exception Handling and Logging

2007-08-01 Thread Paul Benedict
My applications do not catch any errors. I let them bubble out of the Action and into an ExceptionHandler object for logging. You can log whatever you want -- including the user -- in the handler. Paul Richard Sayre wrote: After reading the Mail Reader walk through, it would seem the best pra

Exception Handling and Logging

2007-07-29 Thread Richard Sayre
After reading the Mail Reader walk through, it would seem the best practice for handling exceptions is throwing them back to your Action and having a result mapped to handle each specific exception. Is this the best way to do this? If I use this method how can I log the stack of each exception th

Re: struts2 exception handling

2007-05-15 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > I would like to centralize exception handling in a > one class instead of handling them in all action > method. http://struts.apache.org/2.x/docs/exception-configuratio

struts2 exception handling

2007-05-15 Thread meissa . sakho
exceptions. I would like to centralize exception handling in a one class instead of handling them in all action method. Just like the struts1 exception handling approach. I'm thinking about an interceptor to fulfill exception handling task. But, maybe the framework provide something similar t

Re: [S2] What is the preferred way of exception handling (error 500 and similar)?

2007-01-26 Thread Don Brown
Perhaps this will help: http://struts.apache.org/2.x/docs/exception-configuration.html But for general 500 errors, normal servlet methods should work... Don On 1/26/07, Dariusz Wojtas <[EMAIL PROTECTED]> wrote: Hi, What is the suggested way of exception handling in Struts2? I am t

[S2] What is the preferred way of exception handling (error 500 and similar)?

2007-01-26 Thread Dariusz Wojtas
Hi, What is the suggested way of exception handling in Struts2? I am talking about cases when there is a * JSP page compilation error * exception inside an action is * someone types url /i.action instead of /index.action ... I tried to turn 'struts.devMode' to true and false.

jsp Exception handling with errorPage directive and Struts 1.1 + tiles

2007-01-09 Thread Heidy Gutiérrez Guzmán
Hi every one. I'm working with struts 1.1 and I'm facing a problem with my Jsp exception handling, The error page specified in every page using "errorPage" directive, is not shown, instead the tile that has caused the error is shown empty (not rendered), but neither my error p

RE: Java exception handling

2006-11-10 Thread Bruno Melloni
] Sent: Friday, November 10, 2006 10:44 AM To: Struts Users Mailing List Subject: Re: Java exception handling -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miro, temp temp wrote: > For good exceptional handling should I create all my methods in try > catch block and throw exception in the

Re: Java exception handling

2006-11-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miro, temp temp wrote: > For good exceptional handling should I create all my methods in > try catch block and throw exception in the catch block with > e.printstacktrace() I would recommend simply doing this: > }catch(Exception e) { >

Java exception handling

2006-11-10 Thread temp temp
For good exceptional handling should I create all my methods in try catch block and throw exception in the catch block with e.printstacktrace() Exammple public void processQueryResults(Map metaInfo, Map entityInfo) throws WorkflowException {

Exception handling best practices: ModuleException

2006-10-31 Thread Rick Schumeyer
ruts! So I see this warning as a non-problem. Am I missing something? I plan to use declarative exception handling, hopefully in combination with ModuleException. At some point, I will end up in a jsp page and need to print out the contents of the ActionError within the ModuleException.

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
? > > > ----- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Reg-%3A-JSP-Exception-Handling-wi

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread Antonio Petrelli
jaikarthi ha scritto: ... path="/jspException" type="com.sen.exception.JspExceptionHandlerAction" scope="request" > redirect="false/> my action class gets executed and success is forwarded,b

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
error.jsp is >> >> <%@ page isErrorPage="true"%> >> >> >> >> >> >> unexpected error occured >> >> >> >> I dont know why? i am badly in need of this. >> >> Please help me Guys i am looking for ur reply >> >> Thanks, >> J

Re: Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread Antonio Petrelli
It seems that your message has been corrupted. Try to resend it. jaikarthi ha scritto: Hi, I am trying to handle JSP Exception in my Project. We are using Tiles plug in in our project. My Layout definition is My header and footer re

Reg : JSP Exception Handling Problem with Tiles

2006-09-01 Thread jaikarthi
,my error.jsp is not rendered. my error.jsp is <%@ page isErrorPage="true"%> unexpected error occured I dont know why? i am badly in need of this. Please help me Guys i am looking for ur reply Thanks, JaiKarthik -- View this message in context: http://www.

Re: Reg : Exception Handling

2006-09-01 Thread Li
so, for the respective action-mapping with the forward="failure" /Raman Rokariya -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Friday, September 01, 2006 1:11 PM To: Struts Users Mailing List Subject: Re: Reg : Exception Handling Karthikn ha scr

RE: Reg : Exception Handling

2006-09-01 Thread Rokariya, Raman
st Subject: Re: Reg : Exception Handling Karthikn ha scritto: > Hi, > > I am new user. I am implementing exception handling in my > application. > In my action class I have try, catch block. > in the catch block &

Re: Reg : Exception Handling

2006-09-01 Thread Antonio Petrelli
Karthikn ha scritto: Hi, I am new user. I am implementing exception handling in my application. In my action class I have try, catch block. in the catch block catch(Exception e) { return mapping,findforward("fa

Reg : Exception Handling

2006-08-30 Thread Karthikn
Hi, I am new user. I am implementing exception handling in my application. In my action class I have try, catch block. in the catch block catch(Exception e) { return mapping,findforward("failure")

Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Paul Benedict
>> forwarded to the correct view, I cannot display the error message using > >> . Does anyone know why? > >> > >> I have the validate attribute of the action element set to false in my > >> 'struts-config.xml' and this is the only way that I ha

Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
know why? I have the validate attribute of the action element set to false in my 'struts-config.xml' and this is the only way that I have been able to make declarative exception handling work with the Struts Validator. If I set the validate attribute to true, declarative exception han

Re: Declarative Exception Handling with Struts Validation

2006-05-16 Thread Paul Benedict
e I have been > forwarded to the correct view, I cannot display the error message using > . Does anyone know why? > > I have the validate attribute of the action element set to false in my > 'struts-config.xml' and this is the only way that I have been able to > make d

Declarative Exception Handling with Struts Validation

2006-05-16 Thread Asad Habib
to false in my 'struts-config.xml' and this is the only way that I have been able to make declarative exception handling work with the Struts Validator. If I set the validate attribute to true, declarative exception handling does not work and I am forwarded to the view specified in the inpu

Re: Declarative Exception Handling

2006-04-23 Thread Ted Husted
On 4/21/06, Asad Habib <[EMAIL PROTECTED]> wrote: > When using declarative exception handling, where do you create the > exception instances? In the action itself? Yes. The framework first catches all exceptions thrown by an Action. Then, it looks to see if there's an exception

Declarative Exception Handling

2006-04-21 Thread Asad Habib
When using declarative exception handling, where do you create the exception instances? In the action itself? I would like to use the ModuleException class and pass a resource key to the constructor but don't know where this should be accomplished. On another note, are there any reso

Struts Exception handling design question !

2006-03-03 Thread digant . k . joshi
Hi ! I want to find out what is best thing to do when it comes to Exception Handling? I have my Application specific AppException I create many different sub-class of AppExceptions based on different conditions in my application. In struts config I am trying to

Exception Handling in struts - Sitemesh messes it up! :(

2006-01-27 Thread Raghu Kanchustambham
;servlet-filter". So what I see happening is that this exception gets "wrapped" into a JasperException. When my database is down, it no longer directs me to /Exceptions.jsp page as it used to do before I introduced Sitemesh. One of two things could be happening: 1. Sitemesh "hi

More questions on exception handling

2005-10-07 Thread Preston CRAWFORD
the web.xml the exception is swallowed and the page doesn't print out the error the same way. The stack trace doesn't go back to the root of the problem or doesn't seem to. So how do I handle 500 exceptions at the container level without ruining my struts-level exception handling? Or sho

Re: Exception handling in Struts

2005-08-02 Thread Tremal Nailk
2005/8/1, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > Doesn't look like you are using it to me . . . ok, I didn't use the errorPage attribute in the @page directive because I'm using tiles and the error page would substitute only the errored tile if an exception is thrown, resulting in a unpleasant e

Re: Exception handling in Struts

2005-08-01 Thread erikweber
Doesn't look like you are using it to me . . . http://www.imagescript.com/atg/articles/jsp_j2ee/error_page_basics.htm Erik -Original Message- From: Tremal Nailk <[EMAIL PROTECTED]> Sent: Aug 1, 2005 12:26 PM To: Struts Users Mailing List Subject: Re: Exception handling in S

Re: Exception handling in Struts

2005-08-01 Thread Tremal Nailk
2005/8/1, Dave Newton <[EMAIL PROTECTED]>: > Probably want to use the web.xml exception stuff, then (error-page > element, maybe?) well, I'm using it (see my original posting), but the exception is not caught, simply ignored. Anyway you are right when you say that the exception should always be ca

Re: Exception handling in Struts

2005-08-01 Thread Dave Newton
Tremal Nailk wrote: 2005/8/1, Joe Germuska <[EMAIL PROTECTED]>: what's I'm doing wrong? Struts can't catch exceptions thrown by the JSP. This is one reason ok, anyway I'm looking for a way to catch all the exception thrown by may app. So throwing a dbexception was just an exa

  1   2   >