• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Midlet Download/Installation Status Codes via servlet/jsp

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am trying to get Java Games(midlet) download Statuses i.e OTA midlet Install Notify statuses:

900 Success
901 Insufficient Memory
902 Cancel By User
....

I have writen:
MIDlet-Install-Notify in .Jad file as:
MIDlet-Install-Notify: http://servername.com/downStat.jsp
and writen a code in jsp file to grab all Headers as well Request values. The code snipet is given below:

<%
String headerValue =null,headerName=null;
System.out.println("----- START OF Request Parameter Values-----\n");
Enumeration headerNames = request.getParameterNames();
while (headerNames.hasMoreElements())
{
headerName = (String)headerNames.nextElement();
headerValue = request.getParameter(headerName);
System.out.println("*** ReqParam_Name: "+ headerName + " - Req_Param_value: " + headerValue);
}

System.out.println("----- START OF HEADERS Values -----\n");
headerNames = request.getHeaderNames();
while (headerNames.hasMoreElements())
{
headerName = (String)headerNames.nextElement();
headerValue = request.getHeader(headerName);
System.out.println("*** headerName: " + headerName+" - headerValue : "+headerValue + " *** \n");
}
%>

The midlet is calling the .jsp page and I am getting some output

But still I cant find the Midlet Installation Status codes (900,901...) in output.

If any one knows the solution, plz rectify me where am i doing wrong or missing something

Your help will be highly appreciated

Thanks in advance

Hassan
 
reply
    Bookmark Topic Watch Topic
  • New Topic