Re: [google-appengine] Blobstore returns incorrect url
As in deploy it to the web? I dont know. I really need to be able to get it working locally first anyway. Thanks Aidan On Saturday, 10 May 2014 06:27:59 UTC+1, Vinny P wrote: On Fri, May 9, 2014 at 7:45 AM, Aidan Mack aida...@hotmail.comjavascript: wrote: Hi im having trouble returning the correct url from blob store. Could it be because Im logged in as a admin? ... You must be logged in as admin to see the page. If you deploy your application into production App Engine, is the correct blobstore URL returned? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Blobstore returns incorrect url
Hi im having trouble returning the correct url from blob store. Could it be because Im logged in as a admin? ... You must be logged in as admin to see the page. Something like... BlobKey bk = new BlobKey(blobKey); ImagesService services = ImagesServiceFactory.getImagesService(); ServingUrlOptions serve = ServingUrlOptions.Builder.withBlobKey(bk); urla = services.getServingUrl(serve); urla returns as: http://0.0.0.0:/_ah/img/_Kx3h6rQvesySw6srO12Iw But it should actually return as: http://mr:/_ah/img/4qCUhhPq0QR-jJCRCVCaCA Any ideas how to fit? Thanks Aidan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] saving google user details to datastore... but will they be kept to update?
Hi, If I save details to the datastore with something like User user = userService.getCurrentUser(); Entity greeting = new Entity(Greeting, guestbookKey); greeting.setProperty(user, user); That user then changers their nickname, I then query the datastore for that greeting entity. I then display properties from the user object I saved will those details be up to date? so will it now show the users new nickname? If not can I save the userID and then is their an api to get user details based on an ID? Thanks Aidan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] redirect user if they are not admin via security constraint
security-constraint web-resource-collection url-pattern/admin/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint /security-constraint Hi im using the above security restraint to stop none admin. If a none admin trys to access a page I get a HTTP ERROR 403 error User not in required role Instead of this how do I redirect back to my home page? Thanks Aidan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] send entity ID to javascript from jsp. Have Java script request data from servlet and display in jsp
Hi, Im trying to create a system so that I can get data from servlet without redirecting to a new jsp. Im trying to do this using javascript. Currently Im stuck trying to send a entity key to javascript. Can I do that? I will then have javascript send that key on to a servlet and display the returned data with in the current jsp. Thanks Aidan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] get data from datastore without refreshing page
Hi Im very new to app engine and java. But I have setup a jsp file that uses a java class to get data from the datastore. The java file though is obviously server side so I caunt just call a java method onclick from my jsp. Is their anyway to get more data from the datastore without refreshing the page? I thought about using ajax to call a jsp file that took data from the datastore and return it as JSON or xml or something? Thanks Aidan -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.