| Author |
RendarReq.getAttribute() displaying always null which is set by ActionReq.setAttribute()
|
Komari raj
Ranch Hand
Joined: Dec 12, 2008
Posts: 38
|
|
HI All,
I am setting value in Request Attribute using Actionreq.setAttribute("name","Raj") in ProcessAction() method when ever action performed on portlet.
I am getting value as null from Request Attribute using Renderreq.getAttribute("name") in doView() method.
Any Suggestions.
Regards
Raju
|
 |
David O'Meara
Rancher
Joined: Mar 06, 2001
Posts: 13459
|
posted

0
|
1) is there a send redirect in the middle?
2) are they in the same request?
|
 |
Komari raj
Ranch Hand
Joined: Dec 12, 2008
Posts: 38
|
|
1 a) No
2 a) yes for same request( After performing any action on portlet) from ProcessAction() to doView
Regards
Raju
|
 |
Tim McGuire
Ranch Hand
Joined: Apr 30, 2003
Posts: 819
|
|
value is null for me as well when I use actionRequest.setAttribute and renderRequest.getAttribute.
Following portlet examples I saw online, I have always used
in processAction
and
in doView
but I don't know exactly why your way wouldn't work and mine would?
|
 |
Komari raj
Ranch Hand
Joined: Dec 12, 2008
Posts: 38
|
|
Hi TIM,
Thank you Verymuch..
Regards
Raju
|
 |
 |
|
|
subject: RendarReq.getAttribute() displaying always null which is set by ActionReq.setAttribute()
|
|
|