java - HTTP Request in GWT -
i have understand whole rpc mechanism because need own project , upcoming exam.
@remoteservicerelativepath("message") public interface messageservice extends remoteservice { message getmessage(string input); }
the "remoteservicerelativepath..." part confusing me. don't understand how works http url , how http request works in general. i'm beginner , cool if here explain me :) in advance!
for me confusing part how use @remoteservicerelativepath("message")
, have put in web.xml.
<servlet-mapping> <servlet-name>greetservlet</servlet-name> <url-pattern>/sample/greet</url-pattern> </servlet-mapping>
so url /sample/greet
made of 2 strings in case: sample
comes module name, find in *.gwt.xml file.
<module rename-to='sample'> ... </module>
and greet
part in comes @remoteservicerelativepath("greet")
@remoteservicerelativepath("greet") public interface greetingservice extends remoteservice { string greetserver(string name) throws illegalargumentexception; }
this not answering questions maybe helps anyway
Comments
Post a Comment