Re: How can I write to file system from GWT servlet

2010-01-08 Thread Hackle
Hi,
I have the same problem. I deactivated GEA in Project > Properties >
Google > App Engine
but now my client side application doesn't work probably. I m using
some objects from smartgwt
and the skin seems to be disappeared.
If I put the GEA back on everything works fine again (except the
filewriting thing...)
What can I do now?
Thanks for your time.
Hackle

On Dec 21 2009, 3:43 pm, darkling  wrote:
> Thanks that seems to work well.
> Just one (probably stupid question) what does it mean to turn off he
> app engine? Does this effect the way the client side code would run?
> Thanks
>
> On Dec 21, 9:17 am, Nicanor Cristian  wrote:
>
> > GWT is a framework for clientside. There is no sandbox for server side.
> > AFAIK the gwt-rpc servlet is an extension of HttpServlet. I don't see
> > any difference between a normal servlet and the gwt-rpc one. Eclipse
> > could tell you that because you enabled google application engine (GAE)
> > and the latter doesn't supportfilewriting.
>
> > On 12/21/2009 02:36 PM, darkling wrote:
>
> > > I'm using GWT for my web app and Apache POI for a subsystem that
> > > involves reading and writing Excel docs. However when I try to build a
> > > servlet that uses FileOutputStream, Eclipse tells me that GWT won't
> > > allow me to use anyfilewriting class. I just need towriteout the
> > > ExcelfileI built to disk so I can pass it back to the client side. I
> > > want towriteit out to disk so that it's properly formatted as an
> > > Excelfile(I have severe misgivings about trying to pass it back to
> > > client side as an HSSFWorkbook which is the class Apache POI uses).
>
> > > Anyway can anyone give me an idea how towriteto disk? Or do I need
> > > to use a Content Management System andwriteto that? What are the
> > > limits of the GWT sandbox's IO and is there anyway to stretch them?
> > > Maybe I can extend HttpServlet and get filesystem access through the
> > > normal servlet?
>
> > > Why does GWT forbid servlets to dofileIO? Or am I just confused.
>
> > > Any help anyone can offer on doingfileIO from a GWT servlet would be
> > > most appreciated.
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups 
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to 
> > > google-web-toolkit+unsubscr...@googlegroups.com.
> > > For more options, visit this group 
> > > athttp://groups.google.com/group/google-web-toolkit?hl=en.-Hide quoted 
> > > text -
>
> > - Show quoted text -
-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: How can I write to file system from GWT servlet

2009-12-21 Thread darkling
Thanks that seems to work well.
Just one (probably stupid question) what does it mean to turn off he
app engine? Does this effect the way the client side code would run?
Thanks

On Dec 21, 9:17 am, Nicanor Cristian  wrote:
> GWT is a framework for clientside. There is no sandbox for server side.
> AFAIK the gwt-rpc servlet is an extension of HttpServlet. I don't see
> any difference between a normal servlet and the gwt-rpc one. Eclipse
> could tell you that because you enabled google application engine (GAE)
> and the latter doesn't support file writing.
>
> On 12/21/2009 02:36 PM, darkling wrote:
>
>
>
> > I'm using GWT for my web app and Apache POI for a subsystem that
> > involves reading and writing Excel docs. However when I try to build a
> > servlet that uses FileOutputStream, Eclipse tells me that GWT won't
> > allow me to use any file writing class. I just need to write out the
> > Excel file I built to disk so I can pass it back to the client side. I
> > want to write it out to disk so that it's properly formatted as an
> > Excel file (I have severe misgivings about trying to pass it back to
> > client side as an HSSFWorkbook which is the class Apache POI uses).
>
> > Anyway can anyone give me an idea how to write to disk? Or do I need
> > to use a Content Management System and write to that? What are the
> > limits of the GWT sandbox's IO and is there anyway to stretch them?
> > Maybe I can extend HttpServlet and get filesystem access through the
> > normal servlet?
>
> > Why does GWT forbid servlets to do file IO? Or am I just confused.
>
> > Any help anyone can offer on doing file IO from a GWT servlet would be
> > most appreciated.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups 
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > google-web-toolkit+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.- Hide quoted 
> > text -
>
> - Show quoted text -

--

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




Re: How can I write to file system from GWT servlet

2009-12-21 Thread Nicanor Cristian
GWT is a framework for clientside. There is no sandbox for server side. 
AFAIK the gwt-rpc servlet is an extension of HttpServlet. I don't see 
any difference between a normal servlet and the gwt-rpc one. Eclipse 
could tell you that because you enabled google application engine (GAE) 
and the latter doesn't support file writing.

On 12/21/2009 02:36 PM, darkling wrote:
> I'm using GWT for my web app and Apache POI for a subsystem that
> involves reading and writing Excel docs. However when I try to build a
> servlet that uses FileOutputStream, Eclipse tells me that GWT won't
> allow me to use any file writing class. I just need to write out the
> Excel file I built to disk so I can pass it back to the client side. I
> want to write it out to disk so that it's properly formatted as an
> Excel file (I have severe misgivings about trying to pass it back to
> client side as an HSSFWorkbook which is the class Apache POI uses).
>
> Anyway can anyone give me an idea how to write to disk? Or do I need
> to use a Content Management System and write to that? What are the
> limits of the GWT sandbox's IO and is there anyway to stretch them?
> Maybe I can extend HttpServlet and get filesystem access through the
> normal servlet?
>
> Why does GWT forbid servlets to do file IO? Or am I just confused.
>
> Any help anyone can offer on doing file IO from a GWT servlet would be
> most appreciated.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>
>

--

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




Re: How can I write to file system from GWT servlet

2009-12-21 Thread Paul Robinson
You probably have GAE support turned on in the gwt eclipse plugin (turn
it off and you should be ok)

darkling wrote:
> I'm using GWT for my web app and Apache POI for a subsystem that
> involves reading and writing Excel docs. However when I try to build a
> servlet that uses FileOutputStream, Eclipse tells me that GWT won't
> allow me to use any file writing class. I just need to write out the
> Excel file I built to disk so I can pass it back to the client side. I
> want to write it out to disk so that it's properly formatted as an
> Excel file (I have severe misgivings about trying to pass it back to
> client side as an HSSFWorkbook which is the class Apache POI uses).
>
> Anyway can anyone give me an idea how to write to disk? Or do I need
> to use a Content Management System and write to that? What are the
> limits of the GWT sandbox's IO and is there anyway to stretch them?
> Maybe I can extend HttpServlet and get filesystem access through the
> normal servlet?
>
> Why does GWT forbid servlets to do file IO? Or am I just confused.
>
> Any help anyone can offer on doing file IO from a GWT servlet would be
> most appreciated.
>   

--

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




How can I write to file system from GWT servlet

2009-12-21 Thread darkling
I'm using GWT for my web app and Apache POI for a subsystem that
involves reading and writing Excel docs. However when I try to build a
servlet that uses FileOutputStream, Eclipse tells me that GWT won't
allow me to use any file writing class. I just need to write out the
Excel file I built to disk so I can pass it back to the client side. I
want to write it out to disk so that it's properly formatted as an
Excel file (I have severe misgivings about trying to pass it back to
client side as an HSSFWorkbook which is the class Apache POI uses).

Anyway can anyone give me an idea how to write to disk? Or do I need
to use a Content Management System and write to that? What are the
limits of the GWT sandbox's IO and is there anyway to stretch them?
Maybe I can extend HttpServlet and get filesystem access through the
normal servlet?

Why does GWT forbid servlets to do file IO? Or am I just confused.

Any help anyone can offer on doing file IO from a GWT servlet would be
most appreciated.

--

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