I am developing a Java GAE/GWT webapp.
The UI is GWT. The webapp is planned for deployment on GAE. Therefore,
it is developed using GAE/GWT eclipse plugin.
It's a simple app - porting the GDATA sample TableDemo to GAE/GWT.
Here are the steps. TableMgr.jsp actually calls a session bean
MrBean.java to perform the steps and to store session info.
1. Main Page TableMgr.jsp comes on web browser.
Initialises the gdata SpreadsheetService.
this.Service = new SpreadsheetService("Table Manager");
2. User chooses Login.
3. User is presented the Google user auth page, with TableMgr.jsp
itself as the authsub callback page:
<%
String authReqUrl =
AuthSubUtil.getRequestUrl(
"TableMgr.jsp",
"http://spreadsheets.google.com/feeds",
false,
true);
%>
<script type="text/javascript">
location.replace("<%=authReqUrl%>");
</script>
4. User logs in and agrees to grant permission.
5. TableMgr.jsp accepts initial auth token and exchanges it for a
session auth token successfully.
6. TableMgr.jsp sets auth token of SpreadsheetService with session
auth token.
7. TableMgr.jsp needs to present a list of all spreadsheets in the
user's Docs account for user to choose.
Here is where it fails.
Therefore, TableMgr.jsp attempts to initialise a SpreadsheetFeed:
URL feedUrl = this.FeedUrlFactory.getSpreadsheetsFeedUrl();
try {
this.SpreadsheetFeed =
this.SpreadsheetService.getFeed(
feedUrl,
SpreadsheetFeed.class);
}
catch ...
Exception entrails indicate access denied due to failure to establish
cookie.
My question is "What cookie?"
Is getFeed trying to establish a cookie on the jetty server or on the
hosted browser?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Data Protocol" 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-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---