Rev 1312 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1312 | Rev 1814 | ||
---|---|---|---|
Line 2... | Line 2... | ||
2 | 2 | ||
3 | import org.apache.log4j.Logger; |
3 | import org.apache.log4j.Logger; |
4 | import org.apache.struts.util.RequestUtils; |
4 | import org.apache.struts.util.RequestUtils; |
5 | import pt.estgp.estgweb.domain.PageContentImpl; |
5 | import pt.estgp.estgweb.domain.PageContentImpl; |
6 | import pt.estgp.estgweb.domain.UserSessionImpl; |
6 | import pt.estgp.estgweb.domain.UserSessionImpl; |
- | 7 | import pt.estgp.estgweb.utils.Globals; |
|
7 | 8 | ||
8 | import javax.servlet.jsp.JspException; |
9 | import javax.servlet.jsp.JspException; |
9 | import javax.servlet.jsp.JspWriter; |
10 | import javax.servlet.jsp.JspWriter; |
10 | import javax.servlet.jsp.tagext.BodyTagSupport; |
11 | import javax.servlet.jsp.tagext.BodyTagSupport; |
11 | 12 | ||
Line 54... | Line 55... | ||
54 | return SKIP_BODY; |
55 | return SKIP_BODY; |
55 | } |
56 | } |
56 | 57 | ||
57 | public boolean go() throws JspException |
58 | public boolean go() throws JspException |
58 | { |
59 | { |
59 | UserSessionImpl userSession = (UserSessionImpl) pageContext.getRequest().getAttribute(pt.estgp.estgweb.Globals.USER_SESSION_KEY); |
60 | UserSessionImpl userSession = (UserSessionImpl) pageContext.getRequest().getAttribute(Globals.USER_SESSION_KEY); |
60 | PageContentImpl pageContent = (PageContentImpl) RequestUtils.lookup(pageContext, name, property, null); |
61 | PageContentImpl pageContent = (PageContentImpl) RequestUtils.lookup(pageContext, name, property, null); |
61 | PageContentImpl.1.5.0/docs/api/java/security/acl/Acl.html">Acl.1.5.0/docs/api/java/rmi/server/Operation.html">Operation op = PageContentImpl.1.5.0/docs/api/java/security/acl/Acl.html">Acl.1.5.0/docs/api/java/rmi/server/Operation.html">Operation.parse(clearance); |
62 | PageContentImpl.1.5.0/docs/api/java/security/acl/Acl.html">Acl.1.5.0/docs/api/java/rmi/server/Operation.html">Operation op = PageContentImpl.1.5.0/docs/api/java/security/acl/Acl.html">Acl.1.5.0/docs/api/java/rmi/server/Operation.html">Operation.parse(clearance); |
62 | if(op == null) |
63 | if(op == null) |
63 | { |
64 | { |
64 | logger.error("Clearance " + clearance + " does not exist. see PageContentImpl.Acl.Operation possible values"); |
65 | logger.error("Clearance " + clearance + " does not exist. see PageContentImpl.Acl.Operation possible values"); |