|
im creating a portlet on liferay using spring framework. i was thinking when my implementation triggers an exception from a try-catch block i would catch the exception and throw it to my controller. is there an easier and cleaner way doing this? |
|
im creating a portlet on liferay using spring framework. i was thinking when my implementation triggers an exception from a try-catch block i would catch the exception and throw it to my controller. is there an easier and cleaner way doing this? |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: Sep 09 '11 at 10:09
Seen: 647 times
Last updated: Sep 13 '11 at 18:18
i already found a way using org.springframework.web.portlet.handler.SimpleMappingExceptionResolver
will try and test this first if this answer my question.
still doesnt work on my implementation :(
Nevermind this question because i found a better way. which is not to display errors when their is an exception in a service. but in a controller which is more better.