• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RPC - any negative affect when override doGet?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any negative affect when override doGet in RemoteServiceServlet?
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.
RemoteServiceServlet is designed to be used as a "normal class whose methods can be invoked". Why do you wish to override doGet()
 
Alexander Streltsov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you. Nice place. We just started project on GWT.
Now we do registration module, need e-mail confirmation by link (GET).
Need to create HttpServlet or just override doGet in RPC?
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Now we do registration module, need e-mail confirmation by link (GET).


You mean where your application will send the newly registered user a confirmation mail which he has to click before some specified time out limit?
If yes, it is easiest to create a separate servlet.
 
Alexander Streltsov
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Maneesh Godbole wrote:it is easiest to create a separate servlet.



yes, i have both versions, they work fine for now. Question: is there any reason do not use override doGet in RPC (may it cause any problems?).
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well I see no reason why not to thought I have never done it myself. The RemoteServiceServlet nor it's ancestor AbstractRemoteServiceServlet do not provide concrete implementation of doGet() s you really wouldn't be overriding. But like I said, I would still have a separate servlet.
 
reply
    Bookmark Topic Watch Topic
  • New Topic