google-app-engine

GAE - Error when browse jsp page

I create a blank project (by using eclipse plugin), create a default jsp page, run GAE server, browse to this jsp and i got error JRE: 1.6, Compiler: 1.6 JSP file: <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://...

is struts a good starting point for java web

I've been developing in java then I stopped, so now since I have my google app engine account I wanted to start with this again. Also I love web and I know struts is a good MVC framework. I've been reading this. do you think struts can help me to start or should I start with "plain" servlets, and then go to some framework ...

Background process in GAE

I am developing a website using Google App engine and Django 1.0 (app-engine-patch) a major part of my program has to run in the background and change local data and also post to a remote url... can sumone suggest an effective way of doin this... ...

choice property in google app engine

platform: django 1.0, google app engine, app-engine-patch , python 2.5.4 i am tring to use the choices attribute as i always have been using in django website STATUS_CHOICES = ( (1, _('Yet To Start')), (2, _('Running')), (3, _('Paused')), (4, _('Completed')), (5, _('Cancelled')), (6, _('Error')),) class Campaign(db.Model): name = ...

Object label in GAE Django

In my usual django code I use the unicode function to give each object a label...this appears in the admin interface as the oject label in the objects listed... class apprd(models.Model): usr = models.ReferenceProperty(User) approved = models.BooleanProperty(default = True) def __unicode__(self): return ('approved one') ...

Retrieving key from new object created from create_object using Django generic views

My code looks as such: def add_cart(request): return create_object(request, form_class=CartForm, post_save_redirect=reverse('test.views.show_cart', kwargs=dict(object_id='%(key)s'))) Ideally, I would like it to look like so: def add_cart(request): newobject = create_object(request, form_clas...

Build a GQL query (for Google App Engine) that has a condition on ReferenceProperty

Say I have the following model: class Schedule(db.Model): tripCode = db.StringProperty(required=True) station = db.ReferenceProperty(Station, required=True) arrivalTime = db.TimeProperty(required=True) departureTime = db.TimeProperty(required=True) And let's say I have a Station object stored in the var foo. How d...

appengine - java persistent

I have 3 class with relation: Member 1-n Tracker Link 1-n Tracker with owned one-to-many bidirectional relationship @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Member { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent(ma...

Anyone successfully adopted JaikuEngine?

Are there real world adaptations of JaikuEngine on Google App Engine? (Question from my boss which wants to use it instead writing our own system) ...

CMS over Google App Engine, with SEO

Hello everyone! Do you know a good CMS/Blogger application that could run over GoogleAppEngine (GAE) and that have Google Friendly Urls? I need to install an application like this for a small company, so they could publish their work and blog some interesting stuffs. Do you know any good and mature application? Thanks in advance, ...

How to establish communication between flex and python code build on Google App Engine

Dear Friends, I want to communicate using flex client with GAE, I am able to communicate using XMl from GAE to FLex but how should I post from flex3 to python code present on App Engine. Can anyone give me a hint about how to send login information from Flex to python Any ideas suggest me some examples.....please provide me some help ...

How do I upload a files to google app engine app when field name is not known

I have tried a few options, none of which seem to work (if I have a simple multipart form with a named field, it works well, but when I don't know the name I can't just grab all files in the request...). I have looked at http://stackoverflow.com/questions/81451/upload-files-in-google-app-engine and it doesn't seem suitable (or to actua...

How do I represent many to many relation in the form of Google App Engine?

class Entry(db.Model): ... class Tag(db.Model): ... class EntryTag(db.Model): entry = db.ReferenceProperty(Entry, required=True, collection_name='tag_set') tag = db.ReferenceProperty(Tag, required=True, collection_name='entry_set') The template should be {{form.as_table}} The question is how to make a form to create ...

Google's AppEngine - java.nio.BufferOverflowException

I am playing with Google's AppEngine Java support. I have a fairly simple set of JSP pages, and was looking at the logs today, and saw that I was getting a BufferOverflowException from the following JSP file: <% response.sendRedirect("index.jsp"); %> I simplified the file to just this, and I still get the error. Any ideas? Here is th...

MVC in a Google App Engine Java world

I'm coming to Java from C# & ASP.NET MVC, I'd love to find an equivalent in the Java world that I could use on the Google App Engine. I've already started to have a play with FreeMarker and even made the first steps towards writing a very simple framework. Ideally I wouldn't have to do all the hard work though, someone must have done thi...

On GAE, how may I show a date according to right client TimeZone ?

On my Google App Engine application, i'm storing an auto-updated date/time in my model like that : class MyModel(db.Model): date = db.DateTimeProperty(auto_now_add=True) But, that date/time is the local time on server, according to it's time zone. So, when I would like to display it on my web page, how may I format it according th...

How to access static resources when using default servlet

Hi i have a problem i want to send all my request to one spring servlet <servlet> <servlet-name>home</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>home</servlet-name> <url-pattern>/*</url-pattern> </serv...

AuthSub with Text_db in google app engine

I am trying to read a spreadsheet from app engine using text_db and authsub. I read http://code.google.com/appengine/articles/gdata.html and got it to work. Then I read http://code.google.com/p/gdata-python-client/wiki/AuthSubWithTextDB and I tried to merge the two in the file below (step4.py) but when I run it locally I get: Traceback...

Google App Engine: Directed to Google Sites Instead for Domain Name

Tried following the instructions here: http://stackoverflow.com/questions/817809/how-to-use-google-app-engine-with-my-own-domain-not-subdomain Where I can use my google app engine website with my own domain name however when setting it up, it seems to be showing my google app sites instead of my google app engine website... any idea of...

No reverse error in Google App Engine Django patch?

I am using Google App Engine patch Django. When I try to go to the admin site, http://127.0.0.1:8080/admin/ , I keep getting this error: TemplateSyntaxError at /admin/ Caught an exception while rendering: Reverse for 'settings.django.contrib.auth.views.logout' with arguments '()' and keyword arguments '{}' not found. I...