[appengine-java] Re: Disable 'refresh' in a page

2011-09-26 Thread Dick Larsson
HTTP Status Code 204 is what you should use. It means that the server has processed the request but user agent's active document view should remain the same/should not change. response.setStatus(204); See w3.org for more info http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html Best regards D

[appengine-java] Re: list my site in gogle search

2011-09-26 Thread Sudhakar Abraham
Create your domain, upload your application to App Engine and point your application to your domain. The following are the steps to register your domain in google. step 1: Go to the Webmaster using the link "www.google.com/webmasters/ tools/" step 2: Enter your username and password of google a

[appengine-java] File Upload

2011-09-26 Thread Guilherme Souza
Hey guys, i have a problem with uploading files at my project, i tried to use the library org.apache.commons.fileupload, but i couldn't import to eclipse, now i'm looking for a new way to upload files to my JSP page. Thanks in advance. -- You received this message because you are subscribed to

[appengine-java] ServletRequest.getRemotePort() doesn't work!

2011-09-26 Thread Yanming
Hi! all, I try to use HttpServletRequest.getRemotePort() method to get client's port connected to Google App Engine, but I always get value 0. Is this a bug? If it is, can we get it fixed? Thanks in advance. Yanming -- You received this message because you are subscribed to the Google

[appengine-java] HttpServletRequest.getRemotePort() doesn't work!

2011-09-26 Thread Yanming
Hi! Sorry if this is double post. First one doesn't come up. I use HttpServletRequest.getRemotePort() to get client's port connected to Google App Engine, but I always get value 0. Is this a bug? How to fix it? Any workaround? Thanks in advance. Yanming -- You received thi

[appengine-java] Re: Using async-session-persistence

2011-09-26 Thread Peter Dev
http://code.google.com/appengine/articles/managing-resources.html For Java HTTP sessions, write asynchronously - HTTP sessions (Java) lets you configure your application to asynchronously write http session data to the datastore by adding to your appengine-web.xml. but parameter 'queue-name' is

[appengine-java] GAE - Vote counting system

2011-09-26 Thread Peter Dev
We are developing an application, where users can vote for many objects. (for example, voting the best music video of the week) - This means, we have millions of possible objects to vote for, and millions of users To our best knowledge, after taking in consideration different options, the best (o

[appengine-java] Re: Disable 'refresh' in a page

2011-09-26 Thread Mat Jaggard
Someone tried to do this in my old company. The short answer is "No", the long answer is "This is a really bad idea". We set up an event which fired when the page was unloaded, this had the effect that when someone pressed F5 or refresh, they got an error message saying "Please be patient", howeve

[appengine-java] Error 500 when viewing php pages

2011-09-26 Thread Alex
Hi, I'm trying to run a script on App Engine and I have deployed it succesfully but when I try to view any php page I get a 500 Sever Error. Could anyone help me with this? Thanks. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group.

[appengine-java] Servlet Mapping not working as expected

2011-09-26 Thread Andrew Ducker
I'm trying to get Velocity up and running with GAE, and the first problem I'm bumping into is that servlet mapping doesn't seem to be working as I'd expect. I've cut down the Web.xml to its bare minimum: velocity org.apache.velocity.tools.view.VelocityViewServlet velocit

[appengine-java] Datastore APIs new pricing - Query (FirstResult/MaxResults)

2011-09-26 Thread Peter Dev
Datastore APIs new pricing - Query (FirstResult/MaxResults) http://code.google.com/appengine/kb/postpreviewpricing.html#two_entities_fetched_operations_consumed - one more question. Query like this: Query query = session.createQuery("select u from User u order by u.age"); query.setFirstResult(10);

[appengine-java] Datastore APIs new pricing - Query (FirstResult/MaxResults)

2011-09-26 Thread Peter Dev
http://code.google.com/appengine/kb/postpreviewpricing.html#two_entities_fetched_operations_consumed *** Query like this: Query query = session.createQuery("select u from User u order by u.age"); query.setFirstResult(10); query.setMaxResults(30); = 30 read ops (first 10 skipped) or 40 read ops (GA

[appengine-java] Anyone using Velocity and Google App Engine?

2011-09-26 Thread Andrew Ducker
I've been trying to get it working in my GAE workspace, and I've got it picking up my files and processing them, but it doesn't seem to be picking up the tools.xml file from my WEB-INF folder. (i.e. variables from the tools.xml file just appear as $whatever). Is this something other people have e

[appengine-java] Prospective search exception

2011-09-26 Thread Eric
Hi all, I've tried the new prospective search api today. It was alright to subscribe, unsubscribe, listSubscriptions, getSubscription. But when trying to list topics, below error message came out. I'm not sure whether it is a bug of the API or my problem. Is there anyone who knows something a

Re: [appengine-java] Servlet Mapping not working as expected

2011-09-26 Thread Stephen Johnson
My guess is that Google is interpreting them as static files and Google's infrastructure is handling them before it reaches your app. So, read up on excluding static files so they aren't served up by Google's infrastructure at http://code.google.com/appengine/docs/java/config/appconfig.html Also,

[appengine-java] Re: Threads

2011-09-26 Thread Ronoaldo José de Lana Pereira
You may want to try out the AppEngine Pipeline API, which handles most of the problems of distributing your computational workflow, and allows some sort of synchronization. Please, take a look at it: http://code.google.com/p/appengine-pipeline/. We use it in production and it works like a charm

Re: [appengine-java] Anyone using Velocity and Google App Engine?

2011-09-26 Thread David Chandler
Are you using Velocity's classpath resource loader? See http://turbomanage.wordpress.com/2011/07/06/sending-html-emails-with-app-engine-and-velocity/ HTH, /dmc On Mon, Sep 26, 2011 at 3:16 AM, Andrew Ducker wrote: > I've been trying to get it working in my GAE workspace, and I've got > it picki

[appengine-java] All prices being shown as $0.00 under Billing History

2011-09-26 Thread Arun Ramanujapuram
Hi, All prices are being shown as $0.00 under the Billing History page on the admin. console as of 9:20pm PST. If this is not the correct forum to raise, please let me know. Thanks, Arun -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java

[appengine-java] Re: Servlet Mapping not working as expected

2011-09-26 Thread Nichole
try a forward within index.jsp instead: On Sep 26, 1:42 pm, Stephen Johnson wrote: > My guess is that Google is interpreting them as static files and Google's > infrastructure is handling them before it reaches your app. So, read up on > excluding static files so they aren't served up by G

[appengine-java] Transactions on entities in different entity groups ?

2011-09-26 Thread Santosh kumar
Hi, I want to know how to create/update the entities which are in different entity groups ? for ex: I want to update the *apple* and *carrot* entities in a transaction but those parents are not same. (Here i am in such a situation) Thanks in advance :) *S*antosh *K*umar *K*

[appengine-java] Re: GAE - Vote counting system

2011-09-26 Thread jeffrey_t_b
Many writes to the same object will lead to db failures. You really should consider sharding: http://code.google.com/appengine/articles/sharding_counters.html On Sep 26, 12:41 am, Peter Dev wrote: > We are developing an application, where users can vote for many > objects. > (for example, vo

Re: [appengine-java] GAE - Vote counting system

2011-09-26 Thread Jeff Schnitzer
Have you looked into using pull queues combined with sharded counters? If you lease 1,000 tasks at a time you can probably condense writes considerably. There are several different sharding strategies you could take, even just one master set of shards each of which covers all items. 100 shards *