login about faq

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?

asked Sep 09 '11 at 10:09

maryon's gravatar image

maryon
15010

edited Sep 13 '11 at 10:26

Randell's gravatar image

Randell ♦♦
1.6k1529

1

i already found a way using org.springframework.web.portlet.handler.SimpleMappingExceptionResolver

will try and test this first if this answer my question.

(Sep 09 '11 at 11:55) maryon maryon's gravatar image

still doesnt work on my implementation :(

(Sep 12 '11 at 10:39) maryon maryon's gravatar image

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.

(Sep 13 '11 at 18:18) maryon maryon's gravatar image
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×63
×7
×3
×2

Asked: Sep 09 '11 at 10:09

Seen: 647 times

Last updated: Sep 13 '11 at 18:18