Public feed #2132113

Something

public java v1 · immutable
Raw Edit
·published 2012-03-26 00:40 UTC
rendered paste body
public class ExampleAction extends Action {	@Override	public ActionForward execute(ActionMapping mapping, 			ActionForm form, 			HttpServletRequest req, 			HttpServletResponse res)			throws Exception {		HttpSession session = req.getSession(true);		session.setAttribute("foo", "bar");				res.addCookie(new Cookie("baz", "qux"));				return mapping.findForward("success");	}}