Re: catching exception from hibernate String to Long

2011-06-06 Thread Josh Canfield
> Is there a way to catch the exception when the String gets gets turned > into a long so I can do something other than showing the user an > exception page? Alternatively is there a way to over-ride onActivate > so I can do something like: I've used a link transformer to solve a similar problem.

catching exception from hibernate String to Long

2011-06-06 Thread Mark
I have an app that previously displayed a list of information at a URL like this: /author/first_last Now I am switching it to use an ID: /author/25/1 Where 25 is the person id and 1 is the page of the list to display. I'm using something like: Object onActivate(Person person, int page) { } W