incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <Janne.Jalka...@ecyrd.com>
Subject Re: REST-ful URLs [Was: url rewriting supported?]
Date Tue, 08 Jul 2008 05:57:43 GMT
> @URLBinding("@URLBinding("/pages/{page=Main}/{$event}")
> class PageActionBean {
>   WikiPage getPage()
>   void setPage(WikiPage)
>   int getVersion()
>   void setVersion(int)
>   void view()
>   void edit()
>   void comment()
> }

Not dynamic, not good.  Adding new actions requires modification of  
existing code.

(No, the current one is not very good either for the same reason.   
Each action should be a separate Bean so that template writers can  
declare them at will from their own JARs.)

/Janne

Mime
View raw message