Raghvendra Sharma

Ranch Hand
+ Follow
since Oct 09, 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 Raghvendra Sharma

Hi,
I am currently working on iPlanet 6.0 SP4 with oracle 8.1.6. I am planning to make my application language independent. while testing I figured out that if i use oci8 driver or oracle, it doesn't support other language characters while the thin driver supports fine. Can anybody help me regarding this? Is this a bug, or some possible configuration issue? Has somebody came across this problem before? How do i go about it ?"
Hi,
I am currently working on iPlanet 6.0 SP4 with oracle 8.1.6. I am planning to make my application language independent. while testing I figured out that if i use oci8 driver or oracle, it doesn't support other language characters while the thin driver supports fine. Can anybody help me regarding this? Is this a bug, or some possible configuration issue? Has somebody came across this problem before? How do i go about it ?"
16 years ago
Hi friends
Can you people guide me with some resources on JNLP?
waiting for some prompt responses.
warm regards..
raghav..
16 years ago
HI Ujjaval,
The problem in my case was due to the applet not being properly destroyed during the applet life cycle method "destroy". When i took enough care to properly nullify my objects in the destroy method, it worked.
Additionally, try using the applet caching mechanism to ask applet to get data afresh in the second loading. There are certain parameters for the applet tag, at java.sun.com, They actully control the way caching is handled.
regards
raghav..
Raghvendra Sharma
16 years ago
Dear Ersin,
U r correct in saying that we are here for the book.
But u know, the book can't just be won by being here. U have to have business to be here. Or else u r nobbody.
so, while we question and answer between us, prepare the book for us.
and, what all unanswered questions do you have for this forum.. would you please start shooting them... for open discussions ??
regards
raghav..
hi all...
The problem was actually related to the life cycle management of the applet. I had to very effectively handle the destroy and stop calls and manage my objects. The problem was not that the init was not being fired, it was just that it was being picked up from cache. (the jar)
There are certain applet tags related to handling of caching of the applet, just go to java.sun.com/products/plugin
and look for applet caching section, you would get enough material to help it track down. I did the same way.
Hope it helps.
regards
raghav..
16 years ago
Don't you worry Jay.
ALthough I am not sun, I hope I'll be able to help you.
Given a few days.
16 years ago
Yes,
Christophe is quite correct in saying that.
The scriptable = true is truly required.
And of course both of document.AppletName and
document.applets[0] or document.applets[AppletName] would work just fine in case of IE.
raghav..
16 years ago
<input type=text onclick="setApplet()">
<script language="javascript1.2">
function setApplet()
{
document.appletName.setterMethodName("value you want to send");
// mind one thing, you can't send anything but string.
}

here appletName is the name attribute of the applet tag, and setterMethod is the public method of applet expecting a string argument.
hope it helps

raghav..
</script>
[This message has been edited by Raghvendra Sharma (edited August 22, 2001).]
[This message has been edited by Raghvendra Sharma (edited August 22, 2001).]
16 years ago
Hi all
I am working on a java applet (swings), which actually handles a lot of data also. Data comes from database and is handled in data in the supporting classes with applet.
In the applet tag, i specify the jar name in param tag. The first time i ask for applet (to be opened in a new window) it opens file, i.e. it recognized the jar names etc from the archive tag and all stuff. Everything goes smooth.
Say i kill the child window and then fire the applet again from the same page. this time the applet's start init, method etc. all are skipped and nothing is executed. Also, the archive tag is completely ignored, and the plugin console specifies that it didn't recieve any jar names in the archive tag.
The dump of the plug-in console is given hereunder (second time onwards ) -
***********************************
Registered modality listener
Referencing classloader: sun.plugin.ClassLoaderInfo@1df354, refcount=1
Added trace listener: sun.plugin.ocx.ActiveXAppletViewer[TestApplet,0,0,700x500,invalid,layout=java.awt.BorderLayout]
Sending events to applet. LOAD
Sending events to applet. INIT
Sending events to applet. START
Determine if the applet requests to install any HTML page
HTML Installation finished.
Determine if the applet requests to install any JAR
Jar cache option: null
Jar archive(s): null
Jar cache version(s): null
Applet Installation finished.
in the init of applet
in the start of applet
******************************************
while for the first time the console is as -
*****************************************************
Trace level set to 5: basic, net, security, ext, liveconnect ... completed.
Cache filename: C:\WINNT\Profiles\raghvendrash\Temporary Internet Files\Content.IE5\XGH01KU4\04_47Test[1].jar
in the init of applet
Opening http://172.17.26.109/test/i18n.jar
Connecting http://172.17.26.109/test/i18n.jar with no proxy
Opening http://172.17.26.109/test/null
Connecting http://172.17.26.109/test/null with no proxy
Opening http://172.17.26.109/test/com/niit/cliks/te/web/TestingEngineBeanInfo.class
Connecting http://172.17.26.109/test/com/niit/cliks/te/web/TestingEngineBeanInfo.class with no proxy
Opening http://172.17.26.109/test/sun/beans/infos/TestingEngineBeanInfo.class
Connecting http://172.17.26.109/test/sun/beans/infos/TestingEngineBeanInfo.class with no proxy
**************************************************************
The behaviour further is that if i close the child and parent both the browser windows, and start afresh, the things go fine (obviously its the first launch of applet for the browser instance).
Additionally, what i have done is i have nullified all the data structures in destroy method of the applet.
I have to allow the client the behaviour in which he/she would be able to launch the applet n times from the same page.
how do i attack it...
any helps

regards
raghav..
16 years ago
use onchange javascript method for textbox, and in the associated method, set the text in the applet.
17 years ago
Hi,
I am developing a Swing applet, which actually runs quite a heavy application. It uses at least two jar files too.
the functionality requires that i open the page containing in a new browser window. I do that using window.open() successfully.
Once the applet is loaded and working, i close the child window. (the client might always do that...) And then i click again on the link for opening the applet in a new browser window (the original place for firing the applet), what i expect is that the applet should reload itself.
But that's not what is happening. It doesn't do anything written inside any of the methods, i.e. all of the init, start etc. are skipped.
And effectively, i have to have a fresh instance of browser (parent) to be able to launch the applet again.
Could anybody throw some light on this thing. What i want is that the applet should be loaded again whenever i click on that link for loading it.
any sort of help would do.
thanks and regards

raghav..
[This message has been edited by Raghvendra Sharma (edited August 11, 2001).]
17 years ago
if your jar file contains the drivers etc. required files for the connection thing, you would have to place the jar file in classpath. specifically include it in the classpath like
on NT you can say -
set classpath=
%CLASSPATH%;PATH_OF_YOUR_JAR_FILE\NAME_OF_JAR_FILE.jar
hope it helps
raghav..
17 years ago
In further explaination to the above case,
I have an applet which needs to connect to a servlet residing on the application server which is behind a proxy server.
Now the problem is that the applet's authentication mechanism is not able to accomplish that on its own. What we plan to do is to call a native method written in VC++ with some parameters.
The method then authenticates using given credentials and then returns the authenticated stream back to the java calling method.
The problem that i am facing is that the handle returned returned by the native method (VC++) is a reference to HINTERNET interface which then is needed to be cast into connection of java so that i can further use it.

What help I need from the comunity is the ways and means for casting/converting that HINTERNET handle to java connection.
How do i go about it ? Please help..
regards
raghav..
17 years ago
Hi all,
Through a jni call i am returned a handle to HINTERNET class of MFC.
Now i am supposed to cast it into a valid java connection and then use it for further communication on internet. The problem that i am facing is that i don't know of any methods to cast MFC object into java objects.
Please help, since it is very urgent...
thanks and regards
raghav..
17 years ago