• Post Reply Bookmark Topic Watch Topic
  • New Topic

send location updates to server from web app  RSS feed

 
Daisy Takahashi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have written a web app with a few JSP pages and Java servlets running on a Tomcat server. The app needs to be able to send location updates to one of the Servlets (running on another server) every x seconds. I have found the html5 watchPosition(sucess_callback, error_callback) function to get the location updates from the web page. I'm thinking.. once I get the update from this function.. I'll put code in the success_callback function to send the update to a Servlet. But adding the watchPosition function to every JSP page in the app seems cumbersome. What is the right way to send periodic GPS updates to the server no matter whatever webpage the user is viewing in the app?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66156
146
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd look into using one of a filter, prelude, or coda.
 
Daisy Takahashi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I see, thanks for your reply. I am new to using JSP, so I'd like to know about the terms you have mentioned. Could you point me to a place where I can learn how to work with filters/prelude/coda?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66156
146
IntelliJ IDE Java jQuery Mac Mac OS X
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!