Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Creative commons Attribution-NonCommercial license. http://creativecommons.org/licenses/by-nc/2.5/au/deed.en_GB NO WARRANTY IS GIVEN OR IMPLIED, USE AT YOUR OWN RISK.
 
 package base.jee.servlet;
 
public class TermsAndConditionsServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	private JeeBase jee;
		this. = jee;
	}

	protected void doGet(HttpServletRequest requestHttpServletResponse responsethrows ServletExceptionIOException {
		response.setContentType("text/html; charset=UTF-8");
		response.setCharacterEncoding("UTF-8");
		String ip = BaseServlet.getIp(request);
		ST page = .getPage(new User(.getAPI().getUnauthenticatedRolesCache(), ip), "terms_and_conditions");
		page.remove("shortcuts"); // Don't need shortcuts on this page
		page.add("breadcrumbs"new Breadcrumb("Terms and Conditions"null));
		if(request.getParameter("fail") != null) {
			page.add("error""error");
		}
		response.getWriter().write(page.render());
		return;
	}
	protected void doPost(HttpServletRequest requestHttpServletResponse responsethrows ServletExceptionIOException {
		doGet(requestresponse);
	}
New to GrepCode? Check out our FAQ X