ask when using Struts framework in Action , a collection of some of the objects passed into the list page , objects have get, set methods take an object in the page properties can be $ { target the attribute } to value , but when you go to some object attributes , you need $ {SessionScope. property} to get to the value of $ { object before using . property} to get any value or that can only get to certain objects value , some objects fail to get value , do not know why ? seek to explain the great God ! Thank
------ Solution --------------------------------------- -----
this is the model , the model can only take things inside
------ Solution --------------------- -----------------------
some fail to see the value in the corresponding places you have no set into
--- --- Solution --------------------------------------------
there is a sequence . . Followed on the request or application , such as session or not the same .
------ Solution ---------------------------------------- ----
request valid in the current request , session in the current session valid ....
------ For reference only -------- -------------------------------
both cases should be the same location on the page is not written in it < br> ------ For reference only ---------------------------------------
Yes, in a page written in different locations , you need $ {SessionScope properties. } to watch to see if it has a hash value of the property taken to the value of debug time , hash32, value; hash, hash32 are empty , but by $ { object. property} to obtain property only one value, direct access
------ For reference only ----------------------- ----------------
Yes, in a page written in different locations , you need $ {SessionScope properties. } to watch to see if it has a hash value of the property taken to the value of debug time , hash32, value; hash, hash32 are empty , but by $ { object. property} to obtain property only one value, direct access
hash, hash32 are 0
------ For reference only ---------------------------- -----------
model ? What does this mean ? I do not understand, please elaborate , thank you .
------ For reference only -------------------------------------- -
definitely set to go up , or else I debug when I can see the value of those attributes in the object list . . . . . .
------ For reference only -------------------------------------- -
that 's strange , list collection of objects , object attributes exist other objects , only a few attributes exist in the session it?
I understand there is a problem or ? Depressed. . . . .
没有评论:
发表评论