Hi I have a listgrid in smartgwt and I need to have a button to upload a file to the server, I created an ordinary servlet and have declared in the web.xml of my project but I can not make it work, make me 404 error to deploy . You can use regular servlets (with its post and get methods) with gwt?
Thanks in advance.
GWT transfers data between server side code (running on servlet container like tomcat or jetty) & client side code (GWT compiled client side JS files) in a special way called GWT-RPC.
Client required to know format of data that will send or receives to/from server & server also must knows about format of data that client can parse(we have serious limitation in serialization & deserialization of data because one side we have only javascript!). This is why you need to declare an interface for your remote servlet & GWT makes another async interface using it & restricts your service calls to that interface. & this is why you can’t use any standard servlet with GWT.