WebSphere Portal Server - IStrutsPrepareRender problems with ActionError

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > August 2006 > IStrutsPrepareRender problems with ActionError





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author IStrutsPrepareRender problems with ActionError

2006-08-30, 1:37 pm

I have created a Struts Action implementing the IStrutsPrepareRender. This action class is executed in the doView() mode.

In my configure mode I have other action classes that do not implement this interface.

When there is an application error, I use saveErrors(...) method and forward to the corresponding jsp. Unfortunately the doView() is being called immediately after the doConfigure() and that re-executes the action implementing this inerface.

Any help appreciated. If I don't use saveErrors(...) the configure mode is retained but then I cannot display <html:errors/>

2006-08-30, 1:37 pm

Is there a way to call a Struts action from the doView() ? This way I don't have to implement the IStrutsPrepareRender in my action and resolve my earlier issue with ActionErrors.

MyPortlet extend WpsStrutsPortlet {
doView() {
//call my action
}

}
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com