Home Tutorialhelp Allcomments Struts Struts Strutsresources Access Session

 
 

Comments

 
User Comments for the tutorial:

Accessing Session Object



Total comments: 4      View Tutorial    Discuss: Accessing Session Object
Advertisement
Comments

confused
If i overwrote my GetSession.java like below, it would provide d same result. So, what's d point of that class? By the way, here is citation: 'Note that using this interface makes the Action tied to a servlet environment, so it should be avoided if 

Buggy...
Just a second... [code] public void setSession(Map session){ session = this.getSession(); } [/code/ Are you setting the method's local variable or the class field? Seems like the code should look like: [code] public void setSessio 

Misleading
This example is misleading as said in the previous post. The SessionAware documentation should be referenced and the author clearly did not understand what he was doing. Specifically, the session attribute defined in the Action is not used in the JSP 

About setSession method in GetSession ...
Anna S is right. Look like there was a mistake in this example. There is no point to set the local variable to the class field for doing nothing! 

Related Tutorial and Articles
Struts 2 Tutorials

How to access session value using OGNL.
How to access session value using OGNL. In this example, you will see how to access value of session using OGNL expression language in struts2.  ...;sessionOGNL">Access_Value_bean_from_session_OGNL</a> </body> < 

Struts Questions

struts2
struts2  dear deepak sir plz give the struts 2 examples using applicationresources.properties file 

Struts Questions

struts2
struts2   Sir when i have run my struts 2 web application,every time i get error " request resources is not available",,,what is this,,,plz help me 

Struts Questions

struts2 filters
struts2 filters  hi i created a filter,if the session is null then it should to go error page that ur not authorized to access, nw my question is how to use means how to call filter to do the task pls help me 

Struts Questions

Struts2
Struts2  Hi I am using struts 2,In struts2 architecture ,I couldn't understand the purpose of ActionMapper and ActionProxy.My Question is,when the request comes into the picture,the filterdispatcher consult the ActionMapper 

Struts Questions

Struts2
Struts2  Hi, I need a solution for displaying success message in same page in struts2. how to redirect same page in struts2.Please help me.   hi friend, To know how redirect action can be done in struts 2 you can go 

Framework Questions

STRUTS2
STRUTS2  sir but my question is using ApplicationResources.properties in STRUTS 2.i cant get the values into my application.but in the exmple given at roseindia,u cant use the properties file.i use actionclass-validation.xml 

Struts Questions

struts2 - Struts
Struts2 and Ajax Example  how to use struts2 and ajax 

Struts Questions

struts2 - Struts
struts2  how to pre populate the fields using struts2 from the database 

Struts 2 Tutorials

Access value of array using OGNL in struts2.
Access value of array using OGNL in struts2. Here, you will see how to access value of  array in struts2 using OGNL.  1-index.jsp <%@taglib uri="/struts-tags" prefix="s"%><html> < 

Advertisements Advertisements
 

 

 

DMCA.com