Re: Tab Persistance

2007-07-11 Thread Brian Trzupek
Ok - here is what I finally did. My actions just load a jsp after post so the Redirect was unnecessary. (I actually had some in there I removed). I have a In my base CRUD Action Class I added a property named activeTab, with getters and setters. Then on the s:tabbedPanel tag I added the

Re: Tab Persistance

2007-07-11 Thread Toni Lyytikäinen
I'm just redirecting to an address that's formed like this (see the result type "redirect-action" in the docs): http://myapp.com/here/is/the/url.action?active=myTab Are you doing any redirecting between the the form post and the tabbed page, or are you just posting to an action that renders the

Re: Tab Persistance

2007-07-11 Thread Brian Trzupek
Toni, So when you say you use "%{#parameters['active']}" after "setting a parameter in the request", what are you actually doing? As I have added a hidden field in my form that has an "active" element that I set to the current tab, but it never comes back to the page? Any idea where I w

Re: Tab Persistance

2007-07-10 Thread Brian Trzupek
Thanks, I think the latter works best for my use case. It would be nice if this feature was a built in component of the tabbedPanel and transparent to the developer. brian- On Jul 10, 2007, at 8:53 AM, Adrian Ost wrote: Brian Trzupek schrieb: I have a page with several Struts Tabs on it.

Re: Tab Persistance

2007-07-10 Thread Adrian Ost
Brian Trzupek schrieb: I have a page with several Struts Tabs on it. When I submit the page, I would like it to come back to the 'active' tab (the previous selected tab). Is there a best practice on how to do this? Thanks, Brian- -

Re: Tab Persistance

2007-07-10 Thread Toni Lyytikäinen
I'd like to know the best practice too. I've done this setting a parameter in the request, and in my jsp I have not very elegant but works. On 7/10/07, Brian Trzupek <[EMAIL PROTECTED]> wrote: I have a page with several Struts Tabs on it. When I submit the page, I would like it to come back

Tab Persistance

2007-07-10 Thread Brian Trzupek
I have a page with several Struts Tabs on it. When I submit the page, I would like it to come back to the 'active' tab (the previous selected tab). Is there a best practice on how to do this? Thanks, Brian- - To unsubscribe