aspose file tools*
The moose likes Struts and the fly likes Exception Handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception Handling" Watch "Exception Handling" New topic
Author

Exception Handling

binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Some body please help me out My requirement is what ever exception taking place in my DAO Class have to be caught and thrown to my jsp using customised exception class. iam using struts 1.2
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

How can you throw an exception to a JSP page?? Are you using your DAO class in your JSP?? If yes than that doesn't seem a good practice to me. If not, then maybe what you want is to create an exception page...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Exactly i want throw the error to a exception jsp page
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9302
    
  17

You can look here to know how to configure an exception page in a web application. If you have tried that and it didn't work, then please tell us...
binu narayanan
Ranch Hand

Joined: Jul 24, 2009
Posts: 56
Actualy the thing is i want create a project specific exception class which will be used for throwing the errors to jsp page to be displayed. What ever been thrown from DAO class has to be thrown to jsp via a Action class using this customised exception class. This is small requirement in the project
Ninad Kulkarni
Ranch Hand

Joined: Aug 31, 2007
Posts: 791

@ Ankit
Thanks the link is very usefull.


SCJP 5.0 - JavaRanch FAQ - Java Beginners FAQ - SCJP FAQ - SCJP Mock Tests - Tutorial - JavaSE7 - JavaEE6 -Generics FAQ - JLS - JVM Spec - Java FAQs - Smart Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception Handling