Woot! Now we really need to ship it. ;-)
-D
Musachy Barroso wrote:
>
> There is a new config setting on Convention to let you organize your
> results in a subir, set
>
> <constant name="struts.convention.result.flatLayout" value="false"/>
>
> and you will be able to layout your results like:
>
> ${resultsRoot}/${namespace}/${actionName}/${result}.${extension}
>
> //it is set to "true" by default
>
> musachy
>
> On Thu, May 22, 2008 at 12:30 AM, dusty <[EMAIL PROTECTED]> wrote:
>>
>> I have a largish app that I wrote with RESTful design. It doesn't use
>> the
>> REST plugin because I didn't like the codebehind results default. Having
>> all my views in a flat directory with action-result.ext on a large
>> project
>> doesn't work. Instead I organized my views action/results (i.e.
>> PatientController : WEB-INF/pages/patient/index.jsp or edit.jsp, etc).
>> Its
>> more like Rails and on larger projects its way easier to follow. I am
>> not
>> sure if you nest view directories under the parent contollers
>> packages....
>>
>> So I ended up just wiring it up using XML configuration. Since then, I
>> have
>> been playing with the REST and Codebehind plugin. I got the Codebehind
>> plugin to organize the view files the way I wanted, but with Convention
>> and
>> smart-urls still out there, I was worried about tying an app to one of
>> them.
>> Somehow when working with the REST plugin its seems unfinished....
>>
>> Struts2 definitely needs less options in the configuration and action
>> invocation space. The whole idea behind convention over configuration is
>> that the software should be opinionated. There should be "a way".
>>
>> - We need customizable routes where you can embed parameters, to do
>> things
>> like nested resources (/users/[:user_id]/comments/[:id])
>> - <s:url .../> and <s:form action=... /> should generate RESTful or
>> whatever URLs based on the invocation scheme and routes
>> - As I mentioned before the default result organization should be
>> package-past-baseactionpackage/contoller/result.jsp|ftl
>>
>> But most importantly we need one way! Convention looks great, I would
>> love
>> to see the REST/Convention setup. Did you commit your rest changes?
>>
>>
>>
>> Musachy Barroso wrote:
>>>
>>>> I am trying to figure out what this means! :-) Sounds humorous.
>>>
>>> yeah, just kidding :)
>>>
>>> I added a couple of settings to convention so REST can plugin nicely.
>>> I have the rest-showcase app working. Does anybody have a bigger REST
>>> app to test against?
>>>
>>> //is svn down?
>>>
>>> musachy
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/-VOTE--Bring-Convention-plugin-into-trunk-and-deprecate-Zero-Config-tp17222798p17397185.html
>> Sent from the Struts - Dev mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/-VOTE--Bring-Convention-plugin-into-trunk-and-deprecate-Zero-Config-tp17222798p17698364.html
Sent from the Struts - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]