> > First off: we're *not* deprecating and removing the
> !
> > notation at this point. That is what this
> discussion
> > is entirely about.
> 
> Not YET... that's what the conversation was about as
> I read it... when, not if. 

It's not a "when" to me - it's an "if" and a "why" type of discussion. I really 
should just go and revert the previous changes that turned it off by default, 
since they were done without any consent on my end.

> > Why not disable getters and setters by default too
> > and require people pull out the request parameters
> by
> > hand until they switch the security flag?
> Obviously
> > because it makes no sense. It is core to working
> with
> > actions. And I'm here to argue fervidly that the
> > pattern of URLs like "create!input" is way too
> common
> > in my applications to just turn off by default
> > without some longer discussion. My goal is to make
> > sure that the leaders of Struts have their styles
> of
> > web development represented in a common set of
> > defaults - it would be a big mistake for Struts and
> a
> > big loss to the community if I went off with my
> own
> > ActionMapper and never looked back.
> > 
> 
> Turning off property setting is a spurious argument.
> It's the most common thing people want to do. The "!"
> notation was always an advanced feature (hack). For
> my style of development, the flag will be turned off
> to make sure no-one's trying to use it. 

And I'm saying that it's not a hack nor an advanced thing. I literally use it 
for _every_ form. It's a very common thing, which leads me to...

> > I've put forward alternatives, such as a
> convention
> > (doXxx) or annotation (@ActionMethod) to indicate
> > that methods can be called. But I'm currently very
> > far from convinced that turning off that switch by
> > default is a good idea at all. I'd like for Ted to
> > respond to my proposed alternatives.
> 
> So if you know the setting is there and you can turn
> it on, even if it's off by default, then where's the
> harm? We're just saying that for the new user, who
> isn't familiar with the "!" notation, they don't get
> surprised when someone can hit any method on their
> action using the "!" notation.

You're missing my entire point, so I'll repeat it again:

> My goal is to make 
> sure that the leaders of Struts have their styles of 
> web development represented in a common set of 
> defaults - it would be a big mistake for Struts and a 
> big loss to the community if I went off with my own 
> ActionMapper and never looked back. 

I need everyone to understand this: the goal should be for us (the project 
leaders) to agree on a style of development using Struts that we can all feel 
comfortable recommending as the default starting point. For example, I think 
the default starting point should be on that encourages limited interceptor 
stacks (relying on stack logic flags/conventions instead). I also think that ! 
is a very common technique and want to encourage it, or something like it. 

IMPORTANT: If we can't agree on a default starting point for all users, there 
is absolutely no way we'll have even close to the success of something like 
Rails (which is clearly the goal of the original Struts Ti proposal).
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=40932&messageID=82285#82285


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

Reply via email to