Hi Paul,

I think the stack idea isn't bad, as is the new method on ActionMapping (I 
assume you meant that rather than Action, right?)... But I'm not sure I see why 
the mapping has to have the new attribute... I guess your intention is to only 
add "view" mappings to the stack?  That would make sense... Would the default 
be "view" if not specified so as to maintain backwards-compatibility?

One other idea might be to let the developer be in control by calling something 
in an Action to add it to the stack.  That would remove any compatibility 
concern.  This would be akin to the way tokens are done.

Frank

-----Original Message-----
From: "Paul Benedict" <[EMAIL PROTECTED]>
To: "Struts Developers List" <[email protected]>
Sent: 6/24/06 2:17 AM
Subject: 1.x - DTD Attribute Proposal

I find two uses of action mappings in my applications. One loads data for view, 
another writes data and then goes to a view. These views, I suppose, would 
logically be "pages" if Struts were a page-based controller. But I do find this 
kind of use-case always cropping into my apps, and one of my biggest problems 
is that when I do a save or cancel, I have no automated stack that tells me 
what my last logical view was.

So I'd like to propose allowing developers to mark actions as a page or a view 
(and I have not finialized my nomenclature, so please help me word it better). 
Then Struts can keep a running stack, at some N depth (maybe just 1), that 
would allow me to always return to the previous view.

<action mapping .... page="true" />

In the Action class:
Action.findPreviousPageForward();

Thoughts, O comrades?

                
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

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

Reply via email to