This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Midlet Download/Installation Status Codes via servlet/jsp

Topgun Hassan
Posts: 4
  • Mark post as helpful
  • send pies
  • 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:
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

Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic