chetan dhewal

Ranch Hand
+ Follow
since Nov 07, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by chetan dhewal

Hi All,

I have been able to integrate Blackberry in netbeans, but unable to debug. The problem is I am able to start debugger through netbeans and the debugger stops at the breakpoints as well, but step by step debugging is not happening nor I am able to see the the variable values, thread etc which comes when you normally debug a j2me app. Debugger jumps from one break point to anothe.
I am using JDE 4.3 and netbeans 6.1 with JDK 6.

Execution Command : cmd /C "cd /D {platformhome}{/}simulator&{device}"
My debug command is : cmd /C "cd /D {platformhome}{/}bin&jdwp"

build.xml
---------------------------------------------------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<project name="HttpCon" default="jar" basedir=".">
<description>Builds, tests, and runs the project .</description>
<import file="nbproject/build-impl.xml"/>

<target name="pre-jar">
<available file="${platform.home}/bin/rapc.exe" property="do.rapc"/>
<condition property="jpda.port" value="8000">
<isset property="do.rapc"/>
</condition>
</target>
<target name="post-jar" if="do.rapc">
<exec dir="${platform.home}/simulator" executable="${platform.home}/bin/rapc.exe" failonerror="true">
<arg value="import=${platform.bootclasspath}"/>
<arg value="codename=${name}"/>
<arg value="-midlet"/>
<arg value="jad=${basedir}/${dist.dir}/${dist.jad}"/>
<arg value="${basedir}/${dist.dir}/${dist.jar}"/>
</exec>
</target>
<target name="post-clean">
<delete failonerror="false">
<fileset dir="${platform.home}/simulator">
<include name="**/${name}.*"/>
</fileset>
</delete>
</target>
</project>

---------------------------------------------------------------------------------------------------------------------------------------

9 years ago
Hi Guys,

I want to use Http 1.0 for my http connection, but when i try to set the HTTP version header to 1.0, the mobile handset doesn't honour it and still uses HTTP 1.1 version. How can i force an http connection to use a particular version of HTTP.

One question more along with above is, how i can change or set HTTP 1.1 to not send data in chunk , which i think is default mechanism for HTTP 1.1.


9 years ago
Hi All,
I have 2 sun vouchers with me, expiry september 2009, price INR 4000/-
Interested aspirant can mail me at chetan_dhewal@yahoo.com
Hi All,

Alright, that means, i have to "atleast" put all my instance vars which i want to use into pageContext scope to access them; any other way out without putting them into scope?
[ September 22, 2008: Message edited by: chetan dhewal ]
Hi All,

I am trying to access the array declared in the same jsp page through EL.
I cant see any exception coming but, there is no out put as well, tried to print the value of the array through <%= str[0] %> and its coming. Please advice...

code
------------------------------
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%! public String[] str = {"1","2","3"}; %>
<br>
Value is: ${str[0]}
</body>
</html>
------------------------------
Hi All,

I am trying to fetch the configuration parameter from withing jspInit() method which i have overridden in my jsp code, although i am able to retrieve the context parameter.

web.xml
--------------------------
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<context-param>
<param-name>name</param-name>
<param-value>Rahul</param-value>
</context-param>
<servlet>
<servlet-name>Counter</servlet-name>
<jsp-file>/Counter.jsp</jsp-file>
<init-param>
<param-name>email</param-name>
<param-value>chetan.dhewal@gmail.com</param-value>
</init-param>
</servlet>
<display-name>web3</display-name>
<welcome-file-list>
<welcome-file>Counter.jsp</welcome-file>
</welcome-file-list>
</web-app>

--------------------------

JSP code
-----------------------------
<html>
<body>
<%! public void jspInit()
{
ServletConfig cfg = getServletConfig();

String id = cfg.getInitParameter("email");

ServletContext ctx = getServletContext();

String name = ctx.getInitParameter("name");

System.out.print(id +" "+name);
}
%>
<%! int counter = 0; %>
<%! int countermethod()
{
counter += counter + 2;

return counter;
}

%>
<%= countermethod() %>
</body>
</html>
-----------------------------

I think there is some servlet naming problem , but I am not able to pin point the problem. Is it not possible to get it or this is not the correct way of fetching cofig parameters.

With Regads
Hi All,

Does the media player provided by J2ME supports partial play back... which handsets implement partial playback in their MMAPI implementation?
Which handsets supports rtsp:// protocol?, Any free streaming server ip, just for demo?
10 years ago
Hi all,

The GPRS connection setting that I am using comes with proxy server in it. Can we program our MIDlet so that we bypass this proxy server make it 0.0.0.0 empty?

Are there any HTTP headers that can be changed to change the proxy server or embeding something into the URL.

Can we handle the GPRS connection of the mobile phone? since it is something out of the context of J2ME, which we can not touch

Thnx
11 years ago
Hi all,
Can we connect the mobile to a printer using a data cable and do printing from a J2ME application?

Data cable has a serial connector at the mobile end and a USB connector at the printer end.

If there is no current solution to this type of connection, then how can we make it possible. what all we need to develop to get this connection working?
11 years ago
hi everyone,
I m trying to get the EclipseMe plugin to work with Eclipse 3.1, but the plugin is not getting installed properly. when i see the status of the plugin in the eclipse it says. "eclipseme.core.hooks" property not set.
hi everyone,
I m trying to get the EclipseMe plugin to work with Eclipse 3.1, but the plugin is not getting installed properly. when i see the status of the plugin in the eclipse it says. "eclipseme.core.hooks" property not set. how to resolve this.
Hi,
How can I recognize which handset(company name and model no. eg: nokia 7260) has requested to download my midlet suite so that i can send him/her the appropriate build of the midlet suite, depending on the mobile handset he/she is using.
The mobile handset connects to a site through WAP url or JSP page. Now how can i get this information.
thnx
11 years ago
hi all,
Which are the emulators which support playback for Mp3 files, Sun WTk does not , than which one does?
11 years ago
Hi all,
It feels great to have cleared a tough exam , though the percentage is not good(67%), but i hav cleared it, and i am certified now. The exam was easy as compared to the simulators that i used(Whizlab and j2mecertification.com). I beleive i prepared for the tough questions and the exam threw some easy questions, and i made mistakes. MY advice to people preparing for SCMAD would be... stick to the basics and important things. i am not saying that do not delve deep into the matter of the concepts (they will help in future), but for clearing the exam with good percentage stick to the basics. Thanks to javaranch and the people involved who guided me for the exam.
11 years ago
Hi all,
What are the job prospects with j2me in Delhi. I dont find many companies working on mobile space with j2me. what are the future prospects of mobile application development. Is it a career worth reaching out for as compared to j2ee. Is there any list of companies working on j2me in delhi? so that i can try to apply to them.
11 years ago