on 08-25-2007 10:26 AM
Hi Frndz....
Can any one kindly xplain how to handle exceptions in web dyn pro..like we hav exceptionhandling in java ....so is there any for NWDS
THANKS & REGARDS
Rajesh
Hi,
Web Dynpro Java is basically java only.i.e You program in java. Hence exceptions are supported in the same way as in java i.e. via try,catch and finally block.
Additionally,
In 04/04s if you create a method in any controller in web dynpro you cann't specify exception that can be thrown in the method. This is now possible in new programming web dynpro model in CE.
Hence when creating a method you can also specify custom or core java (lib)excetions.
Regards,
Ashwani Kr Sharma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
You can handle exception in webdynpro exactly as same as you handle it in java:
try{
....
}catch (Exception e){
e.getMessage
}
you can print it or see it on your last defaultTrace.<>.trc file which is located on:
<your serer>:\usr\sap\<your system>\JC00\j2ee\cluster\server0\log
Good luck;
Yoel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
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.