How to avoid the XSL mapping?

Yayo <[email protected]> Fri, 20 May 2005 10:10:40 +0200
Newsgroups gmane.comp.java.strutscx.user
Message-ID <[email protected]>
Hi again.

I'm having a problem. I've got an action to check whether to do a
search or not. The action checks for two specified beans in session
(the listed elements and the criteria) and forwards to "success" or
"fail" respectively if there must be a search or not.

For when "NOT" is the case I forward directly to the view so the
elements are rendered properly. When "YES" I forward to an action to
do the search and then to the view.

Now...

I've got to do some more other searches this way, not repeating when
not necesary and I would like to reuse this same code because other
actions will be a cut'n paste of this one just changing the XSL
mapping name for the case of "NOT".

I'd like to avoid this!  ¿How to?


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_idt12&alloc_id344&op=click