Calling a servlet or jsp from J2ME
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Krisztian_Fekete
Posted On:   Tuesday, October 2, 2001 04:21 AM

Hi, is it possible to call a servlet or a jsp from J2ME ?


If yes, can you show me an example please!


Thank you in advance,

Re: Calling a servlet or jsp from J2ME

Posted By:   shailaja_baliga  
Posted On:   Wednesday, October 10, 2001 09:56 AM

Yes it is possible to call a servlet from J2ME.



For eg :



HttpConnection c;


c = (HttpConnection)
Connector.open("http://www.java.sun.com/MyServlet"); //the servlet URL

c.setRequestMethod(HttpConnection.GET);
//set the type of servlet method HTTP GET/POST method.
About | Sitemap | Contact