Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Preprocessing of request

O'Toole, Joe

2006-12-12

Replies:

Hi

My application receieves an xml request. I need to perform some
transformation of this xml before performing business logic etc.

Is there anyway I can configure through struts that I can invoke a java
class that does this task as I don't want to perform it in the action or the
model. Something like the plug-in element in the struts-config.xml that
invokes a java class that adheres to correct interface for performing tasks
when the app is starting/stopping.

I cannot see where I can do this and I would really to make this task
configurable and push it out from the action or model

Thanks

Joe


©2008 junlu.com - Jax Systems, LLC, U.S.A.