Luckly, you can't do that. You must pass the value to the view using
PropertyBag:

This reference will help you:
http://www.castleproject.org/monorail/documentation/trunk/usersguide/views.html


2012/4/12 Cesar Lopez <[email protected]>

> Hello,
>
> I have this conde inside an action in a controller.
>
> e.g
>
> Controller {
>
> public void Index() {
>
> Context.Session["sessionuser"] = user;
>
> }
>
> }
>
> Now, I want to read the value of Context.Session["sessionuser"]  from my
> .vm file (velocity file)
> But I do not know how to do that..
>
> I do
>
>
> $sessionuser.name but no value is returned..
>
> Please help!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Castle Project Users" group.
> To post to this group, send email to [email protected]
> .
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/castle-project-users?hl=en.
>



-- 
Ricardo

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en.

Reply via email to