[appengine-java] Re: Is possible a query inside an arrayList?
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu tony.qiu.sm...@gmail.com wrote: Of course you can do it. there is a keyword member of in JP-QL. you can use the JP-QL below to do what you want. Query query = new Query(select o from user o where :tag member of o.tags); query.setParameter(tag,abc) On 7月25日, 下午8时28分,salvatoresalvatore.bela...@gmail.com wrote: Hi i've problem How a can query a data inside an ArrayList? I use low level Datastore API the data is structured like this entity (kind 'User') -String username -String pass -ArrayListString tags I want to query all the user with a specific role my code //... DatastoreService ds= DatastoreServiceFactory.getDatastoreService(); Query query = new Query(User); query.addFilter(tag, Query.FilterOperator.EQUAL, admin); // -HERE PreparedQuery pq = ds.prepare(query); IterableEntity it = pq.asIterable(); //... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Is possible a query inside an arrayList?
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu tony.qiu.sm...@gmail.com wrote: Of course you can do it. there is a keyword member of in JP-QL. you can use the JP-QL below to do what you want. Query query = new Query(select o from user o where :tag member of o.tags); query.setParameter(tag,abc) On 7月25日, 下午8时28分,salvatoresalvatore.bela...@gmail.com wrote: Hi i've problem How a can query a data inside an ArrayList? I use low level Datastore API the data is structured like this entity (kind 'User') -String username -String pass -ArrayListString tags I want to query all the user with a specific role my code //... DatastoreService ds= DatastoreServiceFactory.getDatastoreService(); Query query = new Query(User); query.addFilter(tag, Query.FilterOperator.EQUAL, admin); // -HERE PreparedQuery pq = ds.prepare(query); IterableEntity it = pq.asIterable(); //... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Is possible a query inside an arrayList?
:-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Query.html Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu tony.qiu.sm...@gmail.com wrote: Of course you can do it. there is a keyword member of in JP-QL. you can use the JP-QL below to do what you want. Query query = new Query(select o from user o where :tag member of o.tags); query.setParameter(tag,abc) On 7月25日, 下午8时28分,salvatoresalvatore.bela...@gmail.com wrote: Hi i've problem How a can query a data inside an ArrayList? I use low level Datastore API the data is structured like this entity (kind 'User') -String username -String pass -ArrayListString tags I want to query all the user with a specific role my code //... DatastoreService ds= DatastoreServiceFactory.getDatastoreService(); Query query = new Query(User); query.addFilter(tag, Query.FilterOperator.EQUAL, admin); // -HERE PreparedQuery pq = ds.prepare(query); IterableEntity it = pq.asIterable(); //... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Is possible a query inside an arrayList?
Sorry...i have posted multiple times same content. My mistake. On 26 Lug, 17:08, salvatore salvatore.bela...@gmail.com wrote: :-( As you can see here http://code.google.com/intl/it-IT/appengine/docs/java/javadoc/com/goo... Gae low level API don't support, query.setParameter(...) there are some other solutions? (tank's for the answer Tony) On 25 Lug, 16:14, Tony Qiu tony.qiu.sm...@gmail.com wrote: Of course you can do it. there is a keyword member of in JP-QL. you can use the JP-QL below to do what you want. Query query = new Query(select o from user o where :tag member of o.tags); query.setParameter(tag,abc) On 7月25日, 下午8时28分,salvatoresalvatore.bela...@gmail.com wrote: Hi i've problem How a can query a data inside an ArrayList? I use low level Datastore API the data is structured like this entity (kind 'User') -String username -String pass -ArrayListString tags I want to query all the user with a specific role my code //... DatastoreService ds= DatastoreServiceFactory.getDatastoreService(); Query query = new Query(User); query.addFilter(tag, Query.FilterOperator.EQUAL, admin); // -HERE PreparedQuery pq = ds.prepare(query); IterableEntity it = pq.asIterable(); //... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Is possible a query inside an arrayList?
Hi i've problem How a can query a data inside an ArrayList? I use low level Datastore API the data is structured like this entity (kind 'User') -String username -String pass -ArrayListString tags I want to query all the user with a specific role my code //... DatastoreService ds= DatastoreServiceFactory.getDatastoreService(); Query query = new Query(User); query.addFilter(tag, Query.FilterOperator.EQUAL, admin); // -HERE PreparedQuery pq = ds.prepare(query); IterableEntity it = pq.asIterable(); //... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Must only return a redirect from a Blobstore upload callback??? What does it mean?
Hi all! I have two jsp, -one whith a form for upload a file -one for managing upload But, stil the upload goes fine , I recive this warning 19-lug-2010 12.11.15 com.google.appengine.api.blobstore.dev.UploadBlobServlet$3$2 write GRAVE: Must only return a redirect from a Blobstore upload callback. 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger warn AVVERTENZA: Committed before 500 Expected a redirect, tried to write content instead. 19-lug-2010 12.11.15 com.google.apphosting.utils.jetty.JettyLogger warn what does it mean? -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Local log
The import was correct and compile... My mistake ,the log work now, and i can see in console everthing... The error was simple, i don't call servlet Thank's a lot , and sorry! On 31 Mag, 20:43, sreenidhi b.s sreenidh...@gmail.com wrote: Does it compile at all? because you have an error in second import statement. you can also try the below code. import java.util.logging.Level; log.log(Leel.WARNING,Your log text); On Sun, May 30, 2010 at 1:48 PM, salvatore salvatore.bela...@gmail.comwrote: Hi, I've a problem I've tried to see local log ,but nothing was showed at concole when i try to debug . I 've tried with all SDK, from 1.2.5 to 1.3.4nothing appear. I start a wizard, so i've default loggin.proprieties file and here there is my code, package test; import java.io.IOException; i'smport java.util.logging.Logger; import javax.servlet.http.*; public class TestServlet extends HttpServlet { private static final Logger log = Logger.getLogger(TestServlet.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); resp.getWriter().println(Hello, world); log.info(An informational message.); log.warning(A warning message.); log.severe(An error message.); } } ___- can someone help me? thank's to all. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Local log
Hi, I've a problem I've tried to see local log ,but nothing was showed at concole when i try to debug . I 've tried with all SDK, from 1.2.5 to 1.3.4nothing appear. I start a wizard, so i've default loggin.proprieties file and here there is my code, package test; import java.io.IOException; i'smport java.util.logging.Logger; import javax.servlet.http.*; public class TestServlet extends HttpServlet { private static final Logger log = Logger.getLogger(TestServlet.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); resp.getWriter().println(Hello, world); log.info(An informational message.); log.warning(A warning message.); log.severe(An error message.); } } ___- can someone help me? thank's to all. -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.