struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dusty <dustin_pea...@yahoo.com>
Subject Rest Like Rails
Date Mon, 05 May 2008 16:13:11 GMT

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: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message