Hue, After some more investigation, it seems neither Request nor Session data set in getContent is available in top.vm (different names do not have any affect). Earlier when I mentioned that request data was available, that was because the search field was getting populated at the time of form submission and the same was getting retained in the $data.Request
Now the main question is, if this is by design? -Abhijeet -----Original Message----- From: Hue Le Sent: Thursday, November 20, 2003 10:56 AM To: 'Abhijeet Solanki'; Subject: RE: Session and Request data My guess, the problem may be because you setAttribute with the same key "search" since Turbine's RunData class stored information for Request/Response and Sessions with the same key "search". To do the test, could you set with different keys? Thanks Hue -----Original Message----- From: Abhijeet Solanki [mailto:[EMAIL PROTECTED] Sent: Thursday, November 20, 2003 9:03 AM Subject: Session and Request data Hi, I came across following situation while trying to explore top.vm (present in vm/navigations/html , jetspeed1.4b4) : In top.vm, added >From session: $!data.Session.getAttribute("search") >From request: $!data.Request.getParameter("search") <input name="search" type="text" size="8" maxlength="8" value="$!data.Request.getParameter("search")"> <input name="go" type="submit" value="Go"> </td> and in function getContent(Rundata rundata) in GenericMVCPortlet rundata.getRequest().setAttribute("search", search); rundata.getSession().setAttribute("search", search); --- Whenever I hit "Go" with some text in input box, the return from request data is fine but value of session data is not correct. "From session:" shows last entry made in the search input box. Am I doing something wrong here? thanks, Abhijeet --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]