Thank you very much!


Musachy Barroso wrote:
> 
> Take a look at:
> 
> http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/codebehind/src/main/java/org/apache/struts2/codebehind/CodebehindUnknownHandler.java?view=annotate
> 
> line 149:
> 
> String path = string(pathPrefix, actionName, "-", resultCode, "." , ext);
> 
> that's where the path to the template is built.
> 
> musachy
> 
> On Mon, May 5, 2008 at 12:13 PM, dusty <[EMAIL PROTECTED]> wrote:
>>
>>  What would it take to make the results organization using the REST and
>>  Codebehind (or Convention) plugins more like Rails?  I used a directory
>>  structure like the following in a recent Struts2 project where the
>> actions
>>  were done RESTfully, but without the REST plugin or Codebehind (can't
>> think
>>  of a better term).
>>
>>  - patient/ (for class PatientAction)
>>  ----index.html.jsp
>>  ----edit.html.jsp
>>  ----new.html.jsp
>>  ----show.html.jsp
>>  ----_fields.jsp
>>
>>  - transfer-log/ (for class TransferLogAction)
>>  ----show.xml.ftl
>>  ----index.xml.ftl
>>
>>  It worked really well and the organization felt "more better" than a
>> flat
>>  directory with patient-index.jsp, patient-edit.jsp,
>> transfer-log-index.jsp,
>>  etc etc.  I looked through the Codebehind and Convention plugins and I
>>  didn't figure out where to make the change to just do action/result
>> rather
>>  than action-result.  Can anyone point me in the right direction on where
>> to
>>  make that kind of change?
>>  --
>>  View this message in context:
>> http://www.nabble.com/Rest-Like-Rails-tp17065189p17065189.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/Rest-Like-Rails-tp17065189p17090383.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]

Reply via email to