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]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
