On 27-10-2010 at 17:38, Nikolaos Giannopoulos wrote: > Just about to build a horizontally split Log-in / Sign-up form and I was > thinking... > > The Log-in form entails a simple user name and password > The Sign-up form entails a wizard like interface for a multi-page set of > forms > > I am considering 2 options: > 1) 2 ActionBeans... [...] > 2) 3 ActionBeans [...] > > I know that splitting the forms into 2 separate pages is obviously the > simple solution but alas requirements are otherwise... . > > Any pointers on how others have tackled or would tackle such a problem?
Your second option is best. Both have each form submit to a different ActionBean, which is exactly what you want. The second option though, allows each of the three beans to have it's own page. Combined with a custom ActionBeanContext, in which you can override the value of getSourcePageResolution(), you can do this: ActionBean 1 displays the page with both forms. ActionBean 2 handles login, but upon input errors it forwards the user to a page with only the login form (this form will need to be identical to the one on the first page, so you may want to use an include here). ActionBean 3 does something similar, but for the first (second, ...) page of the sign-up wizard. The same caveat applies to the form. Oscar -- ,-_ Oscar Westra van Holthe - Kind http://www.xs4all.nl/~kindop/ /() ) (__ ( It takes less time to do a thing right, than it does to explain why =/ () you did it wrong. -- Henry Wadsworth Longfellow
signature.asc
Description: Digital signature
------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________ Stripes-users mailing list Stripes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/stripes-users