Hi Aidan, There's nothing stopping you from sending the entity key. However, before you do so, read this section, specifically the grayed portion: https://developers.google.com/appengine/docs/java/datastore/entities#Generating_Keys :
*Note also that a key's string representation is not encrypted: a user can decode the key string to extract its components, including the kinds and identifiers of the entity and its ancestors. If it is important to conceal this information from the user, you must encrypt the key string yourself before sending it to the user.* You can send the entity key, but it contains information about your datastore structure. If that's OK with you, then go ahead and send it. If not, then you need to come up with a way to fuzz the key string (either with encryption or some other scheme). -Vinny P On Wednesday, March 13, 2013 6:09:20 PM UTC-5, Aidan Mack wrote: > > 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
