Hi,

I needed to pass a Date  value to a servlet via RequestBuilder and the
way I found to avoid parse exceptions was:

At the client:

RequestBuilder rb = new RequestBuilder(RequestBuilder.GET,
                                                GWT.getModuleBaseURL() 
+"texto?data_inicial="+
                                                
URL.encodeComponent(Long.toString(db.getValue().getTime())) );

At the server:
Date dt = new Date(Long.parseLong(req.getParameter("data_inicial")));

Do you have a better aproach or comments on this ?

Regards,

Geraldo Lopes de Souza

--

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.


Reply via email to