excellent, I do appreciate the help.  Thanks very much!

On Sep 24, 10:31 am, Dominik Steiner
<dominik.j.stei...@googlemail.com> wrote:
> Tom,
>
> this code has to be on client side (GWT code).
>
> HTH
>
> Dominik
>
>
>
> > Yep, I found that API when I did a Google Search ...
>
> > So, I tried the code:      String cookie = Cookie.getCookie
> > (myCookieName);
> > And I must have got some sort of error, because my code stopped, and
> > there were no other log statements.
>
> > So, I guess I was asking if this code has to be on the client side,
> > server side, or both?
>
> > Thanks!
> >                        Tom
>
> > On Sep 23, 11:01 pm, Dominik Steiner
> > <dominik.j.stei...@googlemail.com> wrote:
> >> Hi Tom,
>
> >> not sure I understand yourcookiequestion, but in GWT you can query
> >> forcookiesusing the class
>
> >> com.google.gwt.user.client.Cookie
>
> >> and there have a look at the method
>
> >>   /**
> >>    * Gets thecookieassociated with the given name.
> >>    *
> >>    * @param name the name of thecookieto be retrieved
> >>    * @return thecookie'svalue, or <code>null</code> if thecookie
> >> doesn't exist
> >>    */
> >>   public static String getCookie(String name)
>
> >> So in your GWT code you would check if acookieexists like this
>
> >> Stringcookie=Cookie.getCookie(myCookieName);
> >> if(cookie!= null){
> >>   //cookieexists
>
> >> }
>
> >> HTH
>
> >> Dominik
> >> On 23 Sep., 12:00, Thomas Holmes <thomas.j.hol...@gmail.com> wrote:
>
> >>> I have the demo StockWatcher Application working.  I have client/
> >>> server side code working for the most part.
> >>> I can use a Spring DAO class, make a call to the database to get
> >>> Hibernate POJO's, and then convert that data to GWT-RPC DTO
> >>> classes ... seems to work ok.
>
> >>> I am using a TestAdvDataSource demo app for SmartGWT and GWT-RPC
> >>> DataSource, and it is coming along well.
> >>> Just having a few issues getting the data to appear, but I am  
> >>> working
> >>> on that.
>
> >>> So ... the question is, in my existing Spring Application, a user is
> >>> capable of signing on and I put the users ID in acookie.  So, where
> >>> do I get thecookie?
>
> >>> Do I get it from the server/TestServiceImpl code?   I expect I would
> >>> get thecookiesfrom the request, and be able to use that data to
> >>> filter what I want from the database.
>
> >>> Or, would I get thecookiein the client/TestDataSource code and then
> >>> pass that as an argument to the server/TestServiceImpl?
>
> >>> Thanks!
> >>>                       Tom
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to