dauer commented on code in PR #15304:
URL: https://github.com/apache/grails-core/pull/15304#discussion_r2687601962
##########
grails-doc/src/en/ref/Tag Libraries/session.adoc:
##########
@@ -25,30 +25,28 @@ under the License.
=== Purpose
-The {grailsdocs}ref/Servlet%20API/session.html[session] object is an instance
of the Servlet API's {javaee}javax/servlet/http/HttpSession.html[HttpSession]
class
+The link:{servletApiRefFromRef}session.html[session] object is an instance of
the Servlet API's {jakartaee}jakarta/servlet/http/HttpSession.html[HttpSession]
class
=== Examples
[source,groovy]
----
-class UserController {
+class ExampleTagLib {
- def logout() {
+ def logout = {
log.info "User agent: " + request.getHeader("User-Agent")
session.invalidate()
- redirect(action: "login")
}
Review Comment:
No, it does not make sense when we can't redirect from a TagLib...
I have changed the example to list the available session attributes instead.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]