Thanks for your prompt response Dave. So an custom interceptor before
Params could modify the servlet request and Params interceptor would
never seem them? Is there not a way to configure the existing Params
interceptor to ignore any request parameters w/ a value of empty string?
The problem that I have is that Params is instantiating empty embedded
objects. For example, I have a Name class for my model. Name contains
a Contact class. So when the request contains blank strings for all the
Contact fields (e.g. contact.name, contact.phone, etc.), Params
interceptor creates a new Contact instance w/ all empty fields and
assigns that reference to the model.
I feel like I'm going against the grain of S2 somehow.
Thanks again for your advice!
--john
Dave Newton wrote:
John Cartwright wrote:
Can someone provide a recommendation for removing empty request
parameters before the Params interceptor sees them? Can Params
interceptor simply be configured to ignore request parameters with no
value?
I'd probably just create a quick interceptor to do that, if that's
actually the functionality you require.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org