• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

RPC - any negative affect when override doGet?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any negative affect when override doGet in RemoteServiceServlet?
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • 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
  • 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: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • 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
  • 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: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • 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.
 
Well don't expect me to do the dishes! This ad has been cleaned for your convenience:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!