Re: [appengine-java] Re: How to create excel file in servlet for google app engine application?

2011-09-07 Thread Arun Ramanujapuram
We had a need for a simple (single-sheet) spreadsheet. So, I just generated a 
CSV output streamwith the following content-type or headers, and this works 
fine (at least in Firefox, where it opens the file in XLS).

response.setContentType( text/csv );
response.addHeader( Content-Disposition, inline; filename=myfile.csv );

I know  text/csv to be a valid mime-type, but not application/csv.

Thanks,
Arun




From: Didier Durand durand.did...@gmail.com
To: Google App Engine for Java google-appengine-java@googlegroups.com
Sent: Tuesday, 6 September 2011 9:52 AM
Subject: [appengine-java] Re: How to create excel file in servlet for google 
app engine application?

Hi,

Another way to do it is to use the spreadsheet api of Google Docs and
send your users there (they can retrieve the web spreadsheet as a file
if needed)

See http://code.google.com/apis/spreadsheets/

regards

didier

On Sep 5, 7:57 pm, Marcelo Liberato mliber...@gmail.com wrote:
 You should try Apache POI:http://poi.apache.org/

 On Sep 5, 7:24 am, Sawan Darekar sawan.dare...@alphabricks.com
 wrote:

  i am developing cloud application which is hosted on google app engine and
  in this i want to *generate excel file* on click of button through servlet.

  i have done it on local machine but when i deploy my application on app
  engine it shows error HTTP Error 500 Internal server error

  i am using *jxl java api* for generating excel file

  code that i have used is here

  try
  {

    //i have used following content type but didn't worked.

    //response.setContentType(application/vnd.ms-excel);

    //response.setContentType(application/x-ms-excel);

    response.setContentType(application/CSV);

    WritableWorkbook w = Workbook.createWorkbook(response.getOutputStream());

    WritableSheet s = w.createSheet(Demo, 0);

    Label label = new Label(0, 2, A label record);

    s.addCell(label);

    w.write();

    w.close();}

  catch (Exception e)
  {

        response.getOutputStream().println(Exception :+e);}

  finally
  {

  }

  --
  Thanks  Regards,
  Raj



-- 
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-java@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.

-- 
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-java@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] Importing Google Hosted Projects

2011-09-07 Thread Alex
Hi,

The Google for Eclipse plugin has a nice wizard to import projects
hosted at Google Project Hosting.
Unfortunately the wizard only shows projects of which I'm a member.
Is there an easy (wizard supported) way to import projects hosted on
Google Project Hosting of which I'm not a member within Eclipse?

Alex

PS: I know that than I'm not able to commit changes, but that fine.

-- 
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-java@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: Re : Importing Google Hosted Projects

2011-09-07 Thread Alex
The code on Google Hostings is open source code so everybody has
access to it.

I could check out the code using a command line. I know that there are
also plugins for Eclipse to checkout the code using a GUI.
The GUI of the Google for Eclipse plugin lacks an option to checkout
projects of which I'm not a member.
So I'm looking for an alternative that is as easy to use as the Google
for Eclipse plugin to checkout the code.


On Sep 7, 3:09 pm, Gaël Oberson gael.ober...@gmail.com wrote:
 Do you really think everybody wants to allow everybody to download app
 source code ?? Where are you coming from ? ;-)

-- 
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-java@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 : Re: Re : Importing Google Hosted Projects

2011-09-07 Thread Gaël
Sorry, I read too fast. Thought you where talking about appengine projects.. 
:-)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/rv0IsS_gvZoJ.
To post to this group, send email to google-appengine-java@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: 1.5.4 SDK Prerelease

2011-09-07 Thread Ice13ill
Is there a probability that some changes affected the new deployments
(on small applications maybe). I have some strange errors when loading
a new deployed app (many classes cannot be found). A thread was opened
here: 
http://groups.google.com/group/google-appengine/browse_thread/thread/25e6f9c0b128e380#

On Sep 7, 5:39 pm, Nischal nischalshett...@gmail.com wrote:
 In python I can see there's async memcache calls! Is it available in Java
 already or will you guys be introducing it probably in the next release?

-- 
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-java@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: Can't set URL Fetch Timeout to a value higher than 5 seconds

2011-09-07 Thread Killian
Hi Lads,

Anyone has any idea what could be going on there? As this issue is becoming 
a major bottleneck, it's quite urgent. I would really appreciate any idea or 
feedback on this.

Thanks in Advance

Killian

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/8Mcx4XyPA2UJ.
To post to this group, send email to google-appengine-java@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] Some Java classes are not uploaded during deploy

2011-09-07 Thread Paul Schmidt
 
   
I just added three new classes to my application; they're very similar to 
existing ones. The functionality works in the dev environment, but not live: 
at least one class is missing from the deploy. It (like many others) is 
loaded via Class.forName and newInstance. 

I see the .class files in the staging directory, but once deployed the app 
throws a java.io.FileNotFoundException when it tries to load it.

Are there limits to the number of classes in a package or something? 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/5uMSJk4Si7AJ.
To post to this group, send email to google-appengine-java@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] Compiled jsp file: FileNotFoundException

2011-09-07 Thread Anders


This is clearly a GAE bug, because the file is there in other 
instances/requests. From the log:

java.lang.RuntimeException: java.io.FileNotFoundException: 
/base/data/home/apps/s~tweetvote2/1.353082386135622494/_ah/java_compiled/WEB-INF/classes/org/apache/jsp/about_jsp.class

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Jq4ELxgA7eoJ.
To post to this group, send email to google-appengine-java@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.



Re: [appengine-java] Compiled jsp file: FileNotFoundException

2011-09-07 Thread Ikai Lan (Google)
I just posted to downtime notify, though we've already completed rolling
back the change we made to high replication apps. We're working on rolling
back the change for master/slave apps.

I'll be updating both downtime-notify and this bug here:

http://code.google.com/p/googleappengine/issues/detail?id=5812

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Wed, Sep 7, 2011 at 4:41 PM, Anders blabl...@gmail.com wrote:

 This is clearly a GAE bug, because the file is there in other 
 instances/requests. From the log:

 java.lang.RuntimeException: java.io.FileNotFoundException: 
 /base/data/home/apps/s~tweetvote2/1.353082386135622494/_ah/java_compiled/WEB-INF/classes/org/apache/jsp/about_jsp.class

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/Jq4ELxgA7eoJ.
 To post to this group, send email to
 google-appengine-java@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.


-- 
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-java@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.



Re: [appengine-java] Some Java classes are not uploaded during deploy

2011-09-07 Thread Ikai Lan (Google)
Your issue is likely related to this:

http://code.google.com/p/googleappengine/issues/detail?id=5812

I just posted to the downtime-notify list about this.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
plus.ikailan.com | twitter.com/ikai



On Wed, Sep 7, 2011 at 2:13 PM, Paul Schmidt paulrschm...@gmail.com wrote:


I just added three new classes to my application; they're very similar
 to existing ones. The functionality works in the dev environment, but not
 live: at least one class is missing from the deploy. It (like many others)
 is loaded via Class.forName and newInstance.

 I see the .class files in the staging directory, but once deployed the app
 throws a java.io.FileNotFoundException when it tries to load it.

 Are there limits to the number of classes in a package or something?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/5uMSJk4Si7AJ.
 To post to this group, send email to
 google-appengine-java@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.


-- 
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-java@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.