Hi Vik,
One way to do this is to use the session to push your objects into.
In your RemoteServiceServlet do:
>
> this.getThreadLocalRequest().getSession().setAttribute("name". {the name});

this.getThreadLocalRequest().getSession().setAttribute("password".
> encrypt({the password}) );  //of course you should encrypt this one ;-) and
> decrypt on the other module.


On the other module do:

> this.getThreadLocalRequest().getSession().getAttribute("name");

decrypt( this.getThreadLocalRequest().getSession(). getAttribute("password"
> )) ;


You can also use a cookie to store the name and password. You set the cookie
on one module and retrieve it on the other one, don't forget the encrypt.

*BUT*! You should use standard JAAS calls to distribute your authentication
between your apps. There is a thread talking about that in this group.
Search for "JAAS".
Hope this help..
- Erick

On Fri, Apr 16, 2010 at 3:58 AM, Vik <[email protected]> wrote:
>
> Hie
> I have two gwt modules.
> in module 1 i am showing a popup on a page which ask login details.
> after hitting submitting button i want to pass the user name and password
> to a different module 2 which is kind of admin dashboard.
> So how do i pass these values across the module?
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
[email protected]<google-web-toolkit%[email protected]>
.
> For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.



--
Erick Audet M.Sc.
site: www.jarics.com
email: [email protected]
Skype:erick.audet
LinkedIn: http://www.linkedin.com/in/erickaudet
tel.: 418.682.9712

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to