struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mahesh Parab" <mumbaivagab...@gmail.com>
Subject Re: ajax and struts 2
Date Fri, 13 Apr 2007 15:25:57 GMT
Hi David,
u can able to read the session variable in javascript,
e.g
var intId
intId='<%=session.getValue("id")%>' ;

try this ,

Thanks,
mahesh.

On 4/12/07, David Harland <harlander3000@yahoo.com> 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: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message