Re: GWT applications session management

2012-05-01 Thread Adio
>From what i understand he means something like this

public class CustomerServiceImpl extends RemoteServiceServlet
implements CustomerService {



  public void authorize(String username, String password) {
// check the username and password
// if everything is OK ...
 
getThreadLocalRequest().getSession().setAttribute("username",username);

  }

.

}

or something like that !

On Apr 30, 4:14 pm, Harpreet Singh  wrote:
> I am clear on most of it.
> Can you explain, "placing session objects on the Service implementation" a
> little more?
>
>
>
>
>
>
>
> On Mon, Apr 30, 2012 at 2:01 PM, Adio  wrote:
> > Thanks for the reply.
>
> > On Apr 27, 7:10 pm, Joseph Lust  wrote:
> > > See  https://www.google.com/search?q=google+web+toolit+overview
>
> > > Joe
>
> > --
> > 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.

-- 
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.



Re: GWT applications session management

2012-04-30 Thread Harpreet Singh
I am clear on most of it.
Can you explain, "placing session objects on the Service implementation" a
little more?

On Mon, Apr 30, 2012 at 2:01 PM, Adio  wrote:

> Thanks for the reply.
>
> On Apr 27, 7:10 pm, Joseph Lust  wrote:
> > See  https://www.google.com/search?q=google+web+toolit+overview
> >
> > Joe
>
> --
> 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.
>
>

-- 
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.



Re: GWT applications session management

2012-04-30 Thread Adio
Thanks for the reply.

On Apr 27, 7:10 pm, Joseph Lust  wrote:
> See  https://www.google.com/search?q=google+web+toolit+overview
>
> Joe

-- 
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.



Re: GWT applications session management

2012-04-30 Thread Adio
Thanks for you reply  i will do my best  !

On Apr 27, 8:19 am, Gmane  wrote:
> On 4/26/2012 8:18 PM, Adio wrote:
>
>
>
>
>
>
>
>
>
> > Hi guys, i am a new to GWT applications to AJAX applications in
> > general. i am making sample applications, to learn GWT applications. I
> > am creating a very simple bank system -ok, by very simple i mean very
> > very simple- and i reached the part the authentication and
> > authorization logic is needed.
>
> > Can someone explain the authentication logic in GWT apps ?
>
> > Anyone explain the entire authentication and authorization logic in
> > Ajax application ?
>
> > Session management in Ajax applications ?
>
> > If you don't want to bother yourselves with explaining and code
> > writing any useful links will be fine.
>
> > Thank you very mush.
>
> Hi, first I think you should read up about GWT-RPC topics and try some
> codes first. However as for your question it's very simple if you
> already understand RPC (although there are other ways than RPC to do this):
>
> - Create your Service and Async on the client side
> - Implement the service on the server side. If you are using GWT RPC,
> this class will inherit from RemoteServiceServlet and eventually inherit
> from Servlet.
> - Just put the authentication logic there (in that RPC servlet),
> verifying user credentials against a database and placing session
> objects on the Service implementation, its that simple

-- 
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.



Re: GWT applications session management

2012-04-27 Thread Gmane

On 4/26/2012 8:18 PM, Adio wrote:

Hi guys, i am a new to GWT applications to AJAX applications in
general. i am making sample applications, to learn GWT applications. I
am creating a very simple bank system -ok, by very simple i mean very
very simple- and i reached the part the authentication and
authorization logic is needed.

Can someone explain the authentication logic in GWT apps ?

Anyone explain the entire authentication and authorization logic in
Ajax application ?

Session management in Ajax applications ?

If you don't want to bother yourselves with explaining and code
writing any useful links will be fine.

Thank you very mush.



Hi, first I think you should read up about GWT-RPC topics and try some 
codes first. However as for your question it's very simple if you 
already understand RPC (although there are other ways than RPC to do this):


- Create your Service and Async on the client side
- Implement the service on the server side. If you are using GWT RPC, 
this class will inherit from RemoteServiceServlet and eventually inherit 
from Servlet.
- Just put the authentication logic there (in that RPC servlet), 
verifying user credentials against a database and placing session 
objects on the Service implementation, its that simple


--
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.



Re: GWT applications session management

2012-04-27 Thread Joseph Lust
See  https://www.google.com/search?q=google+web+toolit+overview


Joe

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/Ejn8spysqL8J.
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.



GWT applications session management

2012-04-27 Thread Adio
Hi guys, i am a new to GWT applications to AJAX applications in
general. i am making sample applications, to learn GWT applications. I
am creating a very simple bank system -ok, by very simple i mean very
very simple- and i reached the part the authentication and
authorization logic is needed.

Can someone explain the authentication logic in GWT apps ?

Anyone explain the entire authentication and authorization logic in
Ajax application ?

Session management in Ajax applications ?

If you don't want to bother yourselves with explaining and code
writing any useful links will be fine.

Thank you very mush.

-- 
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.