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 getContent(Rundata rundata)

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

Reply via email to