lukaszlenart commented on a change in pull request #154: URL: https://github.com/apache/struts-site/pull/154#discussion_r541911157
########## File path: source/core-developers/accessing-application-session-request-objects.md ########## @@ -50,16 +50,24 @@ is an alternative way to access the request and response objects, with the same ## Accessing from the view (JSP, FreeMarker, etc.) Request and session attributes are accessed via OGNL using the `#session` and `#request` stack values. +Page attributes are accessed via OGNL using the `#attr` stack value, and Application attributes via +the `#application` stack value. The `#attr` stack value will search the `javax.servlet.jsp.PageContext` for the specified key. If the `PageContext` -doean't exist, it will search the request, session, and application scopes, in that order. +doesn't exist, it will search the request, session, and application scopes, in that order. -**Accessing the Session or Request from a JSP** +**Accessing attributes in the Application, Session, Request, or Page scope from a JSP** ```jsp +Retrieve the attribute (property), with key myId, from the specified scope: Review comment: This is a JSP page, not XML. I would rather wrap this line (and the on below) with `<p></p>` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org