business validations implemented throwing customeexception(key) such user displayed error messages when goes wrong.
i have forward input jsp (like struts) when business exception raised, correct user actions continue application.
we have custom handlerexceptionresolverimpl handle exceptions @ once place. when exception raised don't know input page.
how in spring4 struts ?
please suggest way how accomplish this?
thanks dhorrairaajj
i have solved this, controllers should extends customewebreq class, has getter method input page string getinputpage(string path)
. controllers responsible return input page based on servlet path argument. getinputpage(string path)
method invoked handlerexceptionmapping exceptions handling.
thanks
dhorrairaajj
Comments
Post a Comment