Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-1) was last changed on 19-Jul-2006 09:36 by UnknownAuthor

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 added 18 lines
The [ReasonableServlet|https://saffron.caret.cam.ac.uk/svn/projects/RSFUtil/trunk/src/uk/org/ponder/rsf/servlet/ReasonableServlet.java] is the main entry point for execution when RSF is used in a plain HTTP Servlet environment. The complete code is shown below:
{{{
public class ReasonableServlet extends HttpServlet {
private RSACBeanLocator rsacbeanlocator;
public void init(ServletConfig config) {
ServletContext sc = config.getServletContext();
WebApplicationContext wac = WebApplicationContextUtils.getWebApplicationContext(sc);
rsacbeanlocator = (RSACBeanLocator) wac.getBean("rsacBeanLocator");
}
protected void service(HttpServletRequest requst, HttpServletResponse response) {
rsacbeanlocator.getBeanLocator().locateBean("rootHandlerBean");
}
}
}}}
The ReasonableServlet is a prime example of [request scope programming|RSAC] since its entire logic is encoded by the fetching of a single request-scope bean (the {{rootHandlerBean}}) in whose init-method the entire request is handled.
Version Date Modified Size Author Changes ... Change note
19-Jul-2006 09:36 1.043 kB UnknownAuthor
« This page (revision-) was last changed on 19-Jul-2006 09:36 by UnknownAuthor