Did you realize about use struts tags?

Inside an Action you can use ActionContext.getContext().getSession() to get
a Map that represents the session.

If you can't use Struts tags, then you can use DWR, but I don't know how to
get session using DWR.

Good Look.

Felipe


David Harland wrote:
> 
> I am new to ajax and have just written my first ajax function. In my
> function I am passing a user id into the function and are being returned a
> List of Contacts to populate a select. Presently I am putting the id  in a
> hidden field in the jsp and then passing it from there. What I would
> prefer to do is have the javascript function call an action so that the
> Java code can access the user id from the session.
> 
> How do I do this please?
> 
> 
> 
> 
>       Don't be flakey.  Get Yahoo! Mail for Mobile and always stay
> connected to friends.    http://mobile.yahoo.com/mail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/ajax-and-struts-2-tf3563636.html#a9958559
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to