the result was:
[ERROR] Unable to load module entry point class
com.ximware.flash.web.client.Web (see associated exception for details)
com.google.gwt.dev.shell.HostedModeException:
invokeNativeString(@com.ximware.flash.web.client.Imprimir::getProjectID()):
JavaScript undefined, expected java.lang.String
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:101)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeString(ModuleSpace.java:264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeString(JavaScriptHost.java:129)
at com.ximware.flash.web.client.Imprimir.getProjectID(Imprimir.java:12)
at com.ximware.flash.web.client.Web.onModuleLoad(Web.java:38)
at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:342)
at
com.google.gwt.dev.shell.BrowserWidget.attachModuleSpace(BrowserWidget.java:326)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6.access$200(BrowserWidgetIE6.java:36)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.gwtOnLoad(BrowserWidgetIE6.java:70)
at
com.google.gwt.dev.shell.ie.BrowserWidgetIE6$External.invoke(BrowserWidgetIE6.java:125)
at
com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:293)<http://localhost:8888/...../myApp.html?ProjID=12345>
the result was
2009/2/22 Vishesh <[email protected]>
>
> You will have to assign the values to a var variable and then retrive
> it from the gwt function using the native jsni within a function.
> for instance using query in the html page declare and assign the value
> to a variable:
> for html page: http://localhost:8888/...../myApp.html?ProjID=12345
>
> var projectID = query['ProjID'];
>
> And retrieve it in the gwt code by a function:
>
> native String getProjectID() /*-{
> if($wnd.projectID) {
> return $wnd.projectID;
> }
> }-*/
>
>
> Hope this helps
> Vishesh.
>
> On Fri, Feb 20, 2009 at 11:25 AM, andres <[email protected]> wrote:
> >
> > how to pass jsp values to gwt
> > >
> >
>
>
>
> --
> Vishesh Sahu
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---