Hi Michael,

Michael Hall wrote:
Where is Click getting the ".htm" extension? Because while that is Click's default, can't it be changed to something different in the web.xml?


Not currently. While its possible to map to another extension things doesn't work as expected. Click also ships with default templates such as error.htm and no-page-found.htm, so if the extension is changed those templates will have to be renamed too. Not a smooth process.



Would it be better to try calling Context.getPageClass(String), and then calling Page.setForward(Class)?


HttpServletRequest#getRequestDispatcher only works with paths. In order to forward Click has to convert the class to a path -> Context.getPagePath(Class). In fact Page.setForward(Class) looks up the path and delegates to Page.setForward(String).

regards

bob

Reply via email to