Ikai, Thanks, got it :). Misread your original post. . Too much coffee I guess... Manny
On Sun, Jan 31, 2010 at 10:24 AM, Manny S <[email protected]> wrote: > Ikai, > > Thanks for the suggestion. Problem is I don't want the sign in to be > mandatory. Users can post with or without signing in. The form is pretty > long and sometimes users see the sign in midway through filling the form and > decide to sign in. I guess when the user clicks on sign in I could get > whatever the users has filled and cache it in the session? I should be able > to do this right? > > Manny > > On Sat, Jan 30, 2010 at 12:52 AM, Ikai L (Google) <[email protected]>wrote: > >> What about this: >> >> 1. Submit the form to your servlet >> 2. Check to see if the User is logged in or not >> 3. If the User is not logged in, serialize the form data and cache it in >> the session, then redirect the User to a login URL >> 4. After login, repopulate the form >> >> You may also be able to save yourself some steps here by simply requiring >> login on the form itself. >> >> On Thu, Jan 28, 2010 at 10:33 PM, Manny S <[email protected]> wrote: >> >>> >>> Question on how to retain form data when the page reloads after user >>> signs in using the userservice - >>> >>> Sample scenario >>> >>> User is entering data into a form >>> User sees sign in button on top right >>> Clicks it and signs in to google account >>> Redirects back to the form page >>> But form data (that the user filled out prior to clicking on sign in) is >>> lost >>> >>> In code I call - userservice.createLoginURL(thisURL) whenever the login >>> URL is clicked. >>> How do I ensure that the form data is retained if the user decides to >>> sign in midway? Any pointers in the right direction would be greatly >>> useful. >>> >>> Thanks, >>> Manny >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "Google App Engine for Java" group. >>> To post to this group, send email to >>> [email protected]. >>> To unsubscribe from this group, send email to >>> [email protected]<google-appengine-java%[email protected]> >>> . >>> For more options, visit this group at >>> http://groups.google.com/group/google-appengine-java?hl=en. >>> >> >> >> >> -- >> Ikai Lan >> Developer Programs Engineer, Google App Engine >> http://googleappengine.blogspot.com | http://twitter.com/app_engine >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine for Java" group. >> To post to this group, send email to >> [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-appengine-java%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-appengine-java?hl=en. >> > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
