On 07-01-2009 at 07:33, Simon wrote:
> My problem:  I really like
> how stripes will bind deeply to objects that are attributes of my
> action bean.  However in some cases it makes the parameter string very
> long or verbose if the property I'm binding to has a long name.
> 
> Eg:
> class Foo implements ActionBean {
> 
>   ...
>   Bar aRatherLongNameForABar;
> 
> }
> 
> Now every parameter binding to the 'Bar'  has to be prefixed with the
> very long name.  Is there a way to map it to a different name or even
> omit it completely (so unprefixed parameters would get bound to the
> aRatherLongNameForABar object)?
> 
> I know this may seem petty, but I keep running into cases where I have
> to expose actions as an API to another person and I'd like to present
> to them the simplest possible thing while maintaining the clearest
> possible names in my own internal code.   So I'm just wondering if
> this is possible!

It is possible, but the solution that comes to mind doesn't include Stripes:
I'd write a filter to adjust the HTTP request parameters. And for an extra
bonus, place your filter between the StripesFilter and Stripes' dispatcher
servlet (or dynamic mapping filter): Stripes will then handle multipart
requests for you.


Oscar

-- 
   ,-_  Oscar Westra van holthe - Kind      http://www.xs4all.nl/~kindop/
  /() )
 (__ (  A: Because people normally read from top to bottom.
=/  ()  Q: Why is top-posting such a bad thing?

------------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It is the best place to buy or sell services for
just about anything Open Source.
http://p.sf.net/sfu/Xq1LFB
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to