on 08-01-2005 10:56 PM
Does anyone know how error handling can be customized in Web Dynpro?
Currently they just mention three "standardized" messages that can be shown to the user: standard, warning and error. Also, they emphasize form validation instead of going into the guts of error handling.
Does anyone know how to log these errors, handle the stack trace, take different actions based on any errors (exceptions), etc.?
Thanks for your help!
Does anyone know how to
<i>log these errors,</i>
Answers provided on this thread
<i>... handle the stack trace,</i>
Please clarify
<i>... take different actions based on any errors (exceptions)</i>
More on the latest.
If exception is triggered by your code then it is rooted from some action handler. Therefore you may surround code inside action handler with try / catch blocks and behaves accordingly in action handler (for example, fire outbound plug to display error view). There is no standard hook in WD that is called on exception (but AFAIR you may customize standard error page for all WD applications while WD core is a regular J2EE web application itself)
Other types of error are validation errors. They occur before your code get executed. To get information how to manage this exceptions check SDN / WebAS / WebDynpro articles -- there are several articles on validating / non-validating action handlers)
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
did you check this
http://help.sap.com/saphelp_nw04/helpdata/en/d2/5c830ca67fd842b2e87b0c341c64cd/frameset.htm ?
Regards, Maxim R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tushar,
U can get some help from NDS webdynpro help regarding the log viewer tool, so go through this link, hope u have help in NDS..
Regards,
Sirisha.R.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi Tushar,
>
> U can get some help from NDS webdynpro help regarding
> the log viewer tool, so go through this link, hope u
> have help in NDS..
>
> http://127.0.0.1:1538/help/index.jsp?topic=/com.sap.de
> vmanual.doc.user/30/6c64403899970ae10000000a155106/con
> tent.htm
>
> Regards,
> Sirisha.R.S
Sirisha:
I tried this link, after starting up the services in the SAP MMC. But I get "Page cannot be displayed". Maybe this port is not recognized. I have port 50000 as the standard port for j2ee applications. Can you please clarify this URL?
Thanks.
Hi Tushar
Is the intention here only to log these messages with defined a severity. What are the other actions you are looking at.
Regards
Pran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Hi Tushar
>
> Is the intention here only to log these messages with
> defined a severity. What are the other actions you
> are looking at.
>
> Regards
> Pran
Pran:
Specifically, I want to be able to use "try-catch" blocks and catch exceptions/errors, then show them to the user, or log them, or take corrective actions like use default values if the input was wrong, etc. or other best practices recommended by SAP.
Thanks.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.