Hello all,
        I have an app that was using  strutsws from Frank Zammetti, and
I am trying to port it to Struts 1.3..
The current version of strutsws override Struts's result processor, and
in particular it overrides those following methods:
- processPreprocess
- processValidate
- processActionPerform
- processMapping
- processException

I had a look at Struts 1.3 core, and how chain &
ComposableRequestProcessor
Are used instead of old request processor, and in evaluating what to
write, which class to extend and wht changes to do I got a littlebit
stuck...

So far, I got to this conclusions, and I was wondering if someone can
check
Them as well as help me in some points

- preprocess().: this does some logic depending on request, eventually
modifying the path in order to append additional parameters... so I
thought
to extend org.apache.struts.chain.command.servlet.PerformForward 

- processValidate: in the method, code needs to validate a SOAPRequest,
so I thought to extend
org.apache.struts.chain.command.servlet.ValidateActionForm

- processActionPerform(): this metod was supposed to redirect to a
custom page after action has done its job and, so I thought that I need
to extend
org.apache.struts.chain.command.servlet.SelectForward


- processMapping(): ?. I really don't know which class to extend / write
for this... below are the javadoc comments.. I was not able to identify
similar
functionality in commands of Struts 1.3.. anyone can help?

/**
 * This method will override the processMapping() method in the base
 * RequestProcessor class.  When we service a Web Service request, we
will
be
 * overriding the input that might be specified in the ActionMapping so
that
* we can properly handle form validation failures.  Problem is, since
the
 * ActionMapping returned by the super version of this method is shared
by
 * all requests, anything that we might alter could impact them all.
For
 * instance, if a Web Service request comes in, it would work fine
without
 * this, but if a regular request comes in for the same action next time
 * and a validation failure occurs, the input page will be an XML
response,
 * which would of course be wrong.  So, here we will determine if we are
 * servicing a Web Service request or not, and if we are we'll return a
 * clone of the mapping, otherwise we'll return the real mapping that
the
 * call to the super version gives us.



- processException(): here I suppose I need to extend
org.apache.struts.chain.command.servlet.ExceptionHandler....


Frank, you might be able to provide more clarifications or correct me if
I was wrong in my explanations.....  I had a look yesterday at
WSRequestProcessor after 3 days on holiday in sunshine.... maybe my
brain boiled a little bit in the sun :-)


Thanx in advance and regards
        marco







---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to