Skip to content

Commit 3a783d3

Browse files
author
Mariusz Kopylec
committed
Docs
1 parent ce4bae0 commit 3a783d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,9 @@ To access application namespace just pass an attribute name:
8686
...
8787
@RequestMapping("uri")
8888
public void doSomething(HttpSession session) {
89-
session.setAttribute("name", "value");
90-
session.getAttribute("name");
89+
String attributeName = "name";
90+
session.setAttribute(attributeName, "value");
91+
session.getAttribute(attributeName);
9192
...
9293
}
9394
```

0 commit comments

Comments
 (0)