This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Midlet Download/Installation Status Codes via servlet/jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Midlet Download/Installation Status Codes via servlet/jsp " Watch "Midlet Download/Installation Status Codes via servlet/jsp " New topic

Midlet Download/Installation Status Codes via servlet/jsp

Topgun Hassan

Joined: Nov 18, 2004
Posts: 4
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


I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Midlet Download/Installation Status Codes via servlet/jsp
jQuery in Action, 3rd edition