Closed GoogleCodeExporter closed 9 years ago
Yes you can.
You can access request object in any place of Vosao Java code if it's called
after ContextFilter by using VosaoContext.getInstance).getRequest() call.
To change session value you need to call session setAttribute every time even
if object is already in session.
Original comment by kinyelo@gmail.com
on 11 Aug 2010 at 10:09
what is the command? is it using velocity or java?
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 5:02
For Java:
VosaoContext.getInstance).getRequest().getSession().setAttribute("session_var",
"value
");
For Velocity:
$request.getSession().setAttribute("session_var", "value")
Original comment by kinyelo@gmail.com
on 13 Aug 2010 at 5:56
is it also means that I can set session var in my servlet and call it in vosao
using that function!?
thanks
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 6:11
Yes.
Original comment by kinyelo@gmail.com
on 13 Aug 2010 at 6:21
that's great! thanks
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 6:56
Original comment by kinyelo@gmail.com
on 13 Aug 2010 at 7:37
where should I put this code
"VosaoContext.getInstance().getRequest().getSession().getAttribute("sCity");"!
can I put it in the page?
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 8:16
You can put this on JSP page.
Original comment by kinyelo@gmail.com
on 13 Aug 2010 at 8:46
and how can I get the session in vosao page?
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 8:48
do I need any jar file plugin?
Original comment by angelome...@gmail.com
on 13 Aug 2010 at 8:48
Original issue reported on code.google.com by
angelome...@gmail.com
on 11 Aug 2010 at 2:52