Re: jsp + javascript code not working. why?
@Reinier; yes, it's a normal jsp page... but not working on GWT's tomcat instance... @Joe; Thanks, it worked by your suggested solution... BTW, does anybody know the reason why GWT's internal tomcat not working with a valid jsp code which is working on normal tomcat instances? I'd be appreciated if a GWT tomcat implementor, watching this thread, explains... Regards, Hasan... On Fri, Jan 2, 2009 at 6:47 AM, Joe Cole profilercorporat...@gmail.comwrote: See my post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/4d7c77f94de90529 It should help. You'll need to override the gwtshellservlet and make sure that you process the html files as the generated servlets. Not sure if anyone has done it, but it would be a great addition to gwt itself. On Jan 2, 11:07 am, Hasan Turksoy hturk...@gmail.com wrote: Hi all, i want to change my main html page to a jsp page - to get some request parameters to process in gwt code. But its not working... Below is a simple test code which is working on tomcat but not working on shell... script language=javascript % String str = TEST; % var s=%=str%; alert(s); /script Anybody knows the reason? Thanks and regards, Hasan... --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: jsp + javascript code not working. why?
Hasan, Can you post how you got it working? On Jan 2, 10:50 pm, Hasan Turksoy hturk...@gmail.com wrote: @Reinier; yes, it's a normal jsp page... but not working on GWT's tomcat instance... @Joe; Thanks, it worked by your suggested solution... BTW, does anybody know the reason why GWT's internal tomcat not working with a valid jsp code which is working on normal tomcat instances? I'd be appreciated if a GWT tomcat implementor, watching this thread, explains... Regards, Hasan... On Fri, Jan 2, 2009 at 6:47 AM, Joe Cole profilercorporat...@gmail.comwrote: See my post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa... It should help. You'll need to override the gwtshellservlet and make sure that you process the html files as the generated servlets. Not sure if anyone has done it, but it would be a great addition to gwt itself. On Jan 2, 11:07 am, Hasan Turksoy hturk...@gmail.com wrote: Hi all, i want to change my main html page to a jsp page - to get some request parameters to process in gwt code. But its not working... Below is a simple test code which is working on tomcat but not working on shell... script language=javascript % String str = TEST; % var s=%=str%; alert(s); /script Anybody knows the reason? Thanks and regards, Hasan... --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: jsp + javascript code not working. why?
sorry for forgotting a point; in addition, i'm reading those request parameters at my GWT EntryPoint class as below; Dictionary params = Dictionary.getDictionary(parameters); String action = params.get(action); String id = params.get(id); Hasan... On Fri, Jan 2, 2009 at 4:18 PM, Hasan Turksoy hturk...@gmail.com wrote: of course; - my custom servlet which is extending from GWTShellServlet: CustomShellServlet.javahttp://code.google.com/p/apiks/source/browse/trunk/src/edu/hacettepe/bote/server/servlet/CustomShellServlet.java - my FreeMarker template to generate application entry page (by custom servlet above): ApiksApp.ftlhttp://code.google.com/p/apiks/source/browse/trunk/src/edu/hacettepe/bote/server/freemarker/templates/ApiksApp.ftl - plus; changed the web.xml (from gwt-dev-windows.jar\com\google\gwt\dev\etc\tomcat\webapps\ROOT\WEB-INF) to point to my custom servlet... in summary: i'm catching my target request (at servlet), getting necessary request parameters, and generating my main page by using a FreeMarker template. tried it... working as expected... ;) Hasan... On Fri, Jan 2, 2009 at 3:10 PM, Joe Cole profilercorporat...@gmail.comwrote: Hasan, Can you post how you got it working? On Jan 2, 10:50 pm, Hasan Turksoy hturk...@gmail.com wrote: @Reinier; yes, it's a normal jsp page... but not working on GWT's tomcat instance... @Joe; Thanks, it worked by your suggested solution... BTW, does anybody know the reason why GWT's internal tomcat not working with a valid jsp code which is working on normal tomcat instances? I'd be appreciated if a GWT tomcat implementor, watching this thread, explains... Regards, Hasan... On Fri, Jan 2, 2009 at 6:47 AM, Joe Cole profilercorporat...@gmail.com wrote: See my post: http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa. .. It should help. You'll need to override the gwtshellservlet and make sure that you process the html files as the generated servlets. Not sure if anyone has done it, but it would be a great addition to gwt itself. On Jan 2, 11:07 am, Hasan Turksoy hturk...@gmail.com wrote: Hi all, i want to change my main html page to a jsp page - to get some request parameters to process in gwt code. But its not working... Below is a simple test code which is working on tomcat but not working on shell... script language=javascript % String str = TEST; % var s=%=str%; alert(s); /script Anybody knows the reason? Thanks and regards, Hasan... --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: jsp + javascript code not working. why?
The bit you posted isn't the problem. On Jan 1, 11:07 pm, Hasan Turksoy hturk...@gmail.com wrote: Hi all, i want to change my main html page to a jsp page - to get some request parameters to process in gwt code. But its not working... Below is a simple test code which is working on tomcat but not working on shell... script language=javascript % String str = TEST; % var s=%=str%; alert(s); /script Anybody knows the reason? Thanks and regards, Hasan... --~--~-~--~~~---~--~~ 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 google-web-toolkit+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---