Well I think you can easily solve your problem if you implement the
ValidationErrorHandler and the handleValidationErrors method .. this way you
can make a redirect resolution or  a forward resolution when a problem
comes. I think this is a better option than changing the
getSourcePageResolution... although  Its not such a bad idea.. i do it...for
other reasons :-)

greetings

Gis

Honza Steuer wrote:
> 
> Hi,
> I have a question why ActionBeanContext.getSourcePageResolution() returns
> a
> resolution pointing to a JSP page instead of ActionBean.
> Is there any good reason for that?
> 
> 
> What will happen if I override this method to return a resolution to
> ActionBean?
> It would be more useful for me.
> 
> I have this problem:
> I have two ActionBeans, lets say FirstActionBean and SecondActionBean.
> When a form in a JSP page generated by FirstActionBean is handled by
> SecondActionBean there is a problem with validation.
> If validation fails, the browser will get the same page but with an error
> message.
> But there is a problem: in the first case the JSP generating the page used
> FirstActionBean and in the second it used SecondActionBean.
> 
> I think overriding of ActionBeanContext.getSourcePageResolution() would
> resolve this problem but I'm not sure if it's the right way.
> Is there another elegant solution how to handle this problem?
> 
> Thanks
> Honza
> 
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Stripes-users mailing list
> Stripes-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/stripes-users
> 
> 

-- 
View this message in context: 
http://old.nabble.com/ActionBeanContext.getSourcePageResolution%28%29---why-Resolution-to-JSP-instead-of-ActionBean--tp27940903p27983915.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to