I'm finding that I often want my pages to have the same names as classes in
my model.

For example, I have an Article class in my model and I want the article
viewer URL to be "/article" (with a context specifying the article
reference). Although this is possible by using fully-qualified class names
everywhere, it's messy and error prone.

Ideally, I'd like to have the URL "/article" mapped to
com.mydomain.pages.ArticleViewer. Is that easy to do? (If it's possible
could you post some code?)

If not, how about a "Page" suffix for page classes, e.g. ArticlePage? I
think that would be a useful convention and might avoid having to compromise
the URLs, model class names or code readability.

David

Reply via email to