Content
o Right click samplerpc00 project
o Select: Run As
o Select: Web Application (GWT Super Dev Mode)
o Once the Development Mode url shows, click on:
http://127.0.0.1:8888/Sample.html
o Since we are using “GWT Super Dev Mode”, the
code will recompile on first access.
o The message did not appear as:
“message goes here”
o We see “……”, ummm?
o We are not communicating with the server
o Why?
o Select: Run As
o Select: Web Application (GWT Super Dev Mode)
o Once the Development Mode url shows, click on:
http://127.0.0.1:8888/Sample.html
o Since we are using “GWT Super Dev Mode”, the
code will recompile on first access.
o The message did not appear as:
“message goes here”
o We see “……”, ummm?
o We are not communicating with the server
o Why?
o Let us bring up the web.xml file from:
/war/WEB-INF/web.xml
o There the reference to:/sample/message . We need to refer to the ‘message’ part
o We are not calling the servlet, let us add this to the
web.xml before the:
/war/WEB-INF/web.xml
o There the reference to:
o We are not calling the servlet, let us add this to the
web.xml before the
o Let us recompile the GWT code from the browser
o Click on the GWT icon, located at the bottom right
o The code will compile
o Ummm, still no message
“message goes here”
o We see “……”
o Open the SampleService.java
o Add this annoration to the code, before the interface
declaration:
@RemoteServiceRelativePath(“message”)
o Let us recompile the GWT code from the browser
o Click on the GWT icon, located at the bottom right
o The code will compile
o Yeah! We have see message”
“message goes here”
o We are communication via RPC to get the message from
the back end.
o Add this annoration to the code, before the interface
declaration:
@RemoteServiceRelativePath(“message”)
o Let us recompile the GWT code from the browser
o Click on the GWT icon, located at the bottom right
o The code will compile
o Yeah! We have see message”
“message goes here”
o We are communication via RPC to get the message from
the back end.