Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Hi everybody, * That link is for Java classes that can be used on the client side, not the server side. On the server side you can use any Java classes you want. * This seems a bit confusive statement.As per my knowledge ,Packages mention in JRE Emulation for GWT on this location (http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=RefJreEmulation )are applied to Both server as well as client. And also,for the same functionalitiy, I came to knew that we can call a external java script function (resposible for creating and writing files) inside a GWT Code (client side) using JSNI .Is this a good solution? Please correct if I am wrong at any point. Regards, Manish - Original Message - From: Arthur Kalmenson [EMAIL PROTECTED] To: Google Web Toolkit Google-Web-Toolkit@googlegroups.com Sent: Monday, September 29, 2008 4:41 AM Subject: Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?* That link is for Java classes that can be used on the client side, not the server side. On the server side you can use any Java classes you want. Regards, Arthur Kalmenson On Sep 28, 11:21 am, Adam T [EMAIL PROTECTED] wrote: Too add to Lothar's comment, you can find which Java classes you can use on server side by referring here:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... BufferedWriter and FileWriter are not included for the reasons already stated. //A On 27 Sep, 11:53, Manish Kumar [EMAIL PROTECTED] wrote: Hi everybody, Thanks all of you for providing continuos support to each other. I am trying to write a file on GWT Client ( inside the method onModuleLoad )using BufferedWriter and FileWriter. The problem is that It is compiled successfuly but on the run time it gives : * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?* * No source code is available for type java.io.FileWriter; did you forget to inherit a required module?* * No source code is available for type java.io.IOException; did you forget to inherit a required module?* These seem a bit sily errors as I might not have included some required module or jar file,But troubling me a lot. I am using eclipse IDE and added all the jars to avoid any compilation error. And also is there any certian way to add module/lib/classpath for the same. Usually I use *configure Build Path* and manual edit of gwt.xml. Does this make any difference? Can anybody please help me out to simulate which is the required for the same? Thanking in advance. Regards Manish --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Urgh, Sunday evening mistakes - it is of course a link to classes available on client side; on server side you can use all of Java. //A On 29 Sep, 01:11, Arthur Kalmenson [EMAIL PROTECTED] wrote: That link is for Java classes that can be used on the client side, not the server side. On the server side you can use any Java classes you want. Regards, Arthur Kalmenson On Sep 28, 11:21 am, Adam T [EMAIL PROTECTED] wrote: Too add to Lothar's comment, you can find which Java classes you can use on server side by referring here:http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... BufferedWriter and FileWriter are not included for the reasons already stated. //A On 27 Sep, 11:53, Manish Kumar [EMAIL PROTECTED] wrote: Hi everybody, Thanks all of you for providing continuos support to each other. I am trying to write a file on GWT Client ( inside the method onModuleLoad )using BufferedWriter and FileWriter. The problem is that It is compiled successfuly but on the run time it gives : * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?* * No source code is available for type java.io.FileWriter; did you forget to inherit a required module?* * No source code is available for type java.io.IOException; did you forget to inherit a required module?* These seem a bit sily errors as I might not have included some required module or jar file,But troubling me a lot. I am using eclipse IDE and added all the jars to avoid any compilation error. And also is there any certian way to add module/lib/classpath for the same. Usually I use *configure Build Path* and manual edit of gwt.xml. Does this make any difference? Can anybody please help me out to simulate which is the required for the same? Thanking in advance. Regards Manish- Dölj citerad text - - Visa citerad 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Manish Kumar schrieb: The main issue is that jsp existed on external webserver accepts only file path to save the comments content. I think you confuse PATH_INFO with file path. The path-info of a URL is everything in the URL after the actual resource, so given a JSP-page that is accessed via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt the PATH_INFO in that case would be /my/path/info/hello.txt (I write PATH_INFO that way because this is the variable being used when using the CGI-gateway. In servlets (i.e. in JSP-pages as well) you can access the path-info- value with getPathInfo() provided by the HttpServletRequest (that can be accessed with the variable request inside JSP-pages). So I am force to create file having comments for each clicked item on the browser. I still don't see a need for the creation of files but it is looking more like a special URL to be constructed. Again RequestBuilder would be the class of choice in that case. On the other hand, if your JSP- page expects a previous file-upload, you're screwed. In that case, before starting a Signed Applet Project, you should consider extending your JSP-page/servlet to accept the file as content of a POST-request. Sorry to ask Once more about (2) as I am bit confused , does RPC mechanisnm work on production environment also. If yes ,Can I process as mention in RPC works on production systems as well. gwt-servlet.jar and your server- classes must be in the classpath of your web-application/server. As well, your web.xml must contain a servlet-entry for your servlet. If you want to use the PATH_INFO-functionality, you might need two entries, one with the URL-pattern /MyServletPattern and /MyServletPattern/* Regards, Lothar --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Hi Lothar and all, Thank all of you very much for much needed stuffs and great support. Atlast, I implemented by writing a separate servlet in our web container(external) which accepts the request URL (contains all file information and comment text )and write the file inside the server. Regards Manish - Original Message - From: Lothar Kimmeringer [EMAIL PROTECTED] To: Google-Web-Toolkit@googlegroups.com Sent: Monday, September 29, 2008 5:16 PM Subject: Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?* Manish Kumar schrieb: The main issue is that jsp existed on external webserver accepts only file path to save the comments content. I think you confuse PATH_INFO with file path. The path-info of a URL is everything in the URL after the actual resource, so given a JSP-page that is accessed via http://www.example.com/servletpath/process.jsp/my/path/info/hello.txt the PATH_INFO in that case would be /my/path/info/hello.txt (I write PATH_INFO that way because this is the variable being used when using the CGI-gateway. In servlets (i.e. in JSP-pages as well) you can access the path-info- value with getPathInfo() provided by the HttpServletRequest (that can be accessed with the variable request inside JSP-pages). So I am force to create file having comments for each clicked item on the browser. I still don't see a need for the creation of files but it is looking more like a special URL to be constructed. Again RequestBuilder would be the class of choice in that case. On the other hand, if your JSP- page expects a previous file-upload, you're screwed. In that case, before starting a Signed Applet Project, you should consider extending your JSP-page/servlet to accept the file as content of a POST-request. Sorry to ask Once more about (2) as I am bit confused , does RPC mechanisnm work on production environment also. If yes ,Can I process as mention in RPC works on production systems as well. gwt-servlet.jar and your server- classes must be in the classpath of your web-application/server. As well, your web.xml must contain a servlet-entry for your servlet. If you want to use the PATH_INFO-functionality, you might need two entries, one with the URL-pattern /MyServletPattern and /MyServletPattern/* Regards, Lothar --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Too add to Lothar's comment, you can find which Java classes you can use on server side by referring here: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=google-web-toolkit-doc-1-5t=RefJreEmulation BufferedWriter and FileWriter are not included for the reasons already stated. //A On 27 Sep, 11:53, Manish Kumar [EMAIL PROTECTED] wrote: Hi everybody, Thanks all of you for providing continuos support to each other. I am trying to write a file on GWT Client ( inside the method onModuleLoad )using BufferedWriter and FileWriter. The problem is that It is compiled successfuly but on the run time it gives : * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?* * No source code is available for type java.io.FileWriter; did you forget to inherit a required module?* * No source code is available for type java.io.IOException; did you forget to inherit a required module?* These seem a bit sily errors as I might not have included some required module or jar file,But troubling me a lot. I am using eclipse IDE and added all the jars to avoid any compilation error. And also is there any certian way to add module/lib/classpath for the same. Usually I use *configure Build Path* and manual edit of gwt.xml. Does this make any difference? Can anybody please help me out to simulate which is the required for the same? Thanking in advance. Regards Manish --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: * No source code is available for type java.io.BufferedWriter; did you forget to inherit a required module?*
Manish Kumar schrieb: I am trying to write a file on GWT Client ( inside the method onModuleLoad )using BufferedWriter and FileWriter. GWT compiles Java to Javascript and HTML. With that you're not able to access the local filesystem of the client (aka browser). So it's not surprising that there will be problems when trying to use the corresponding classes of Java to do that. I'm won- dering that you actually are able to compile that. These seem a bit sily errors as I might not have included some required module or jar file,But troubling me a lot. The Java-classes that can be used for a GWT-client is reduced. Most of the writers and reader (and streams btw) are not included. Can anybody please help me out to simulate which is the required for the same? You can write a Java-Applet. When signing it with an (expensive) certificate you can access the local filesystem of the client. Using the Java-To-Javascript-engine and some JSNI-magic, you should be able to access the filesystem with GWT (or any other Javascrip-application). Regards, Lothar --~--~-~--~~~---~--~~ 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-Toolkit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---