asynchronous call back for client side method
Hi All, I am aware of remote procedure call (RPC) and using asynchronous call back in that. My question : is it possible to use asynchronous call back for client side method. for ex: client method 1 calls another client method 2, once call returns to client method 1 asynchronous call back should be invoked. the use case is same as RPC call, instead of calling method server side another client method should be called. any help would be appreciated. Thanks karun -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
handle GET request in RPC servlet using doGet()
Hi All, I have a servlet "DBLookUpImpl" which implments RemoteServiceServlet. at present I am using this servlet for RPC calls. can I override the doGet() in DBLookUpImpl servlet and invoke the servlet from browser using the url mentioned in url-pattern in web.xml ? when i tried this way i am getting below error but i have put one system.out.println statement which gets printed in tomcat console. *HTTP ERROR: 405* *HTTP method GET is not supported by this URL* *code snippet of "DBLookUpImpl"* public class DBLookUpImpl extends RemoteServiceServlet implements DBLookUpService{ public String getLocaleString(String str) { // RPC method every thing works fine return some string; } public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { System.out.println("insdie DBLookUpImpl class"); // this message gets printed in tomcat console, i dont see any html being displayed instead i see HTTP ERROR: 405 PrintWriter out = resp.getWriter(); out.print(""); out.print(""); out.print("welcome user"); out.print(""); out.print(""); *code snippet of web.xml* greetServlet com.google.gwt.sample.stockwatcher.server.DBLookUpImpl greetServlet /stockwatcher/greet can you some help me on this. Thanks karun -- 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.
Access shared class in client and server
Hi i have class in shared package, its very simple class which has a static variable. i want to assign a value for this static variable in server class and access the same value in client class. is it possible to access the value of static variable in client class, to which i modify or assign a value in server class ? * package* com.ca.csp.cso.project.shared; * public* *class* LocalisedString { * public* *static* String *str_value;* **} *package* com.ca.csp.cso.project.server; impot com.ca.csp.cso.project.shared.LocalisedString; ** *public* *class* SimLookUpImpl *extends* RemoteServiceServlet { * public* *void* init() *throws* ServletException { * super*.init(); *try* { LocalisedString.*str_value = "samplestring";* *}* *catch* (Exception e) { } } } * package* com.ca.csp.cso.project.client; * impot com.ca.csp.cso.project.shared.LocalisedString; public* *class* SimplePanel *extends* FlowPanel { public SimplePanel () { window.Alert(LocalisedString.*str_value *); // prints null; } } Thanks karun -- 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.
can we use load-on-startup for serviceImpl
Hi i have implemented very simple serviceImple i.e RPC class as shown below: @SuppressWarnings("serial") * public* *class* SlimLookUpImpl *extends* RemoteServiceServlet { *public* *void* *SlimLookUpImpl() * { System.*out*.println("console output while startup "); } } I have added this servelt entry in web.xml slimServlet com.application.server.SlimLookUpImpl 1 slimServlet /application/slimService my question here is can we do load-on-startup for this servlet. currently servlet is not loading on startup. Thanks karun -- 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.
can we use JSTL tags in gwt application
Hi we have our own framework to implement localization in J2EE application, the framework has simple jdbc call, servlet and JSTL(fmt) tag. is it possible to use same frame work in gwt application also. i didnt have problem in invoking servlet which intenally calls JBDC class, but i am facing problem in implement in JSTL tag. i got few information about changing the host page to implement JSTL tag but localization in gwt application involves chaning key words in dynamically generated html files (generated during gwt compilation). Thanks karun -- 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.