I am looking for an example that SessionMap should be used instead of Map.

In the Struts 2 Getting Started HTTP Session tutorial (
https://struts.apache.org/getting-started/http-session.html),
HelloWorldAction.java used
private Map<String, Object> userSession;

I used SessionMap to replace Map.
i.e.
private SessionMap<String, Object> userSession;

I got the same result after I compiled & executed the modified program, so
this is not an example to show the difference between SessionMap and Map.

Reply via email to