[google-appengine] Re: Text files bulk upload : any advice ?

2011-04-14 Thread Tony O Dowd
Hi there, this might be helpful. I've recently developed a file
uploaded for an crowd source application I'm involved in and have used
a DiskFileItemFactory. Once you create a factory object you can set
the size of the files that are to be uploaded. Bt default it's 10K but
you cN manually set this  for smaller sizes. here is some code
snippets that may be helpful :-


DiskFileItemFactory factory = new DiskFileItemFactory();  // create
the factory for file uploading
factory.setSizeThreshold(Memory); // this sets the threshold for files
to be held in memory or stored on disk
factory.setRepository(server folder); // defines the location on your
server where the files are to be stored

You  should use this in conjunction with a ServletFileUpload object so
you can bulk load multiple files to your server.

Hope this is helpful,

T.


On Apr 13, 11:53 am, davidgm david.guyonmar...@gmail.com wrote:
 Hi there,

 I've read
 * how to upload one text file - that's ok.
 * how to bulk upload data (csv)  - that's ok also.

 But this doesn't help with for this problem:

 = I need to upload a few dozen of small text files (a few kbytes
 each).

 I need to refresh them sometimes. They will be stored in datastore
 with a few metadata (filename and a release no).

 I've been thinking to merge them into one big file to split then later
 in GAE. But I would rather not do it this way, unless you have a nice
 technique to handle that. They all have special characters of all
 kinds and unicode...

 Do you have any suggestion ?
 Thank you

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Just a little help

2011-04-11 Thread Tony O Dowd

Are you using Python or JAVA to build your servlets?

If You're using Java you need to define your servlet in your web.XML
file. You simply define the servlet name, the class it points to and
then the mapping of the servlet name to it's URL. If you checkout the
default web.XML file that is created when you build the default GWT
app in eclipse you'll see a good example of this.

On Apr 11, 7:26 am, Divyahans divyaha...@gmail.com wrote:
 Hi, I'm just starting off with App Engine and was looking for a little
 help.

 I've made Java Servlets on App Engine with the URLs like 
 -http://www.test.appspot.com/test

 But, how would I make a Java Servlet with the URL 
 -http://www.test.appspot.com/test/page2

 Could someone give me some advice?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Redirecting to a web page from a servlet

2011-04-11 Thread Tony O Dowd
Im calling a httpservlet from a GXT FormPanel using the usual
FormPanel.submit() method. This calls the doPost( request, response)
method of the httpservlet. Im using Submit as I'm uploading data to
the sever from a client using a FileUploadField in the FormPanel.

My problem is that by using FormPanel.Submit(), the browser opens a
new tab and  jumps to the HTML page of the httpservlet, thus changing
the focus from my GXT main application running in the browser.

anyone know a neat solution to prevent this and maintain the focus in
the main GXT application tab?

Thanks in advance.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Using eclipse to build google gadgets...

2011-03-25 Thread Tony O Dowd
You've made an Irish man very happy to read this.stellar stuff!

On Mar 23, 8:24 pm, yuvi yuvalheft...@gmail.com wrote:
 Hi,

 I have been doing that for the last year and about to release a new
 open-source for that Gadglet 

 The CLIENT side is done with GWT library from Google see

 http://code.google.com/p/gwt-google-apis/wiki/GadgetsGettingStarted

 http://gwt-google-apis.googlecode.com/svn/javadoc/gadgets/1.2/index.html

 The SERVER side is implemented on Google App Engine ... in between a
 complete JSON data protocol.

 Feel free to ask more questions directly, and if you are interested
 you can have Gadglet alpha version in about 3 weeks.

 On Mar 23, 6:20 pm, Tony O Dowd tonyat...@gmail.com wrote: Anyone got a 
 good reference to using eclipse to develop google
  gadgets. I traced an article that offered a solution that requires
  lots of additional changes to linkers and other system libraries.
  Surely, there is an easier way. Anyone got a better path to follow?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Using eclipse to build google gadgets...

2011-03-23 Thread Tony O Dowd
Anyone got a good reference to using eclipse to develop google
gadgets. I traced an article that offered a solution that requires
lots of additional changes to linkers and other system libraries.
Surely, there is an easier way. Anyone got a better path to follow?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Can't create a new app using the Google App Engine...

2011-03-22 Thread Tony O Dowd
I've created my first App on the Google App Engine and everything went
well, however, now when I try to create a new application it asks me
to Verify my Account using SMS. As I've already done this previously,
it will not allow me to specify my phone number again. I've tried
using other phone numbers but it just won't let me past this
verification screen

Anybody experience a similar problem and have a solution?

Thanks in advance,

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.