How to get device name in MIDP

Hi friends,

I'm using Servlet with MIDP .While sending a request to server we set some property like

conn.setRequestProperty( "User-Agent",

"Profile/MIDP-1.0 Configuration/CLDC-1.0" );

conn.setRequestProperty(

"Content-Language", "en-US" );

conn.setRequestProperty( "Accept",

"application/octet-stream" );

at Client side.

Which can be get at server (servlet) side.By

request.getHeader("User-Agent"); method.

Does there any RequestProperty exist from we set the device name at Client side(which later retrive at server side)?

Or is there any other way to do so?

Regards,

Sachin Warang.

[682 byte] By [sachinwaranga] at [2007-10-2 20:11:01]
# 1
Hi Sachin,System.getProperty("javax.microedition.platform") will give you the device model. Try using it on a real device since emulator will only give out "j2me"cheers
siddhsdesaia at 2007-7-13 22:51:33 > top of Java-index,Java Mobility Forums,Java ME Technologies...