Yatharth Kumar

Greenhorn
+ Follow
since Dec 06, 2002
Merit badge: grant badges
For More
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 Yatharth Kumar

All:
I have the following problem at hand -
My Action class calls a DAO method that returns an arraylist of ValueObjects. This arraylist is set in the request. Now I am trying to use logic:iterate tag to display the valueobjects as table rows in a jsp page.
Please note that the FormBean is different from the valueObject I am trying to display. If anyone can guide me on how to achieve this, I would be obliged.
Thanks in adv.
20 years ago
Hi,
I am totally new to JBoss. I could start the server, got the message microkernel started .. but as mentioned in the document, when I hit the URL http://locahost:8082/ I cannot find the server. I can hit the server at http://localhost:8080 though and see and error page.
Can somebody explain me whats going on? I have not changed any default settings.
Thanks,
Y
21 years ago
You should take a look at the java plugin documentation. The class ids are of two types:
- Static
- Dynamic
Static id will ensure that client installs a specific version and will force download even if a later version is available. This id is different for different versions.
Dynamic id (the one you are using) will ensure that a download is forced only if a prior version from the one required is available. If a later version is installed, your applet will be loaded using that. This id remains same for all versions.
There is no list as such, but the syntax for static ids pretty much is self explainatory. You can generate one by invoking htmlconverter from the version of JRE you want the client to use.
Hope this information is of help.
Thanks
Y
21 years ago
Marylyn,
Thanks for you response. My requirement is that client should download a specific version (1.3.1_04) even if a later version is installed.
I have got it working though. I guess the class id was not correct. When I generated the code with htmlconverter (Sun) using jre 1.3.1_04, it worked fine.
Thanks,
Y
21 years ago
Hi All:
I am running my applet based application on Windows 2000. Trying to achieve the following:
> Server side of the application uses jdk1.3.1_07. Hence I want the users to stick to the same JVM on client as well to avoid any incomprehensible problems.
> Added Object tag with static classid. The code looks like this:
< OBJECT ID="someObject" CLASSID="clsid:CAFEEFAC-0013-0001-0007-ABCDEFFEDCBA" width="100%" height="0"
codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,7" >
< PARAM name="TYPE" value="application/x-java-applet;jpi-version=1.3.1_07" >
This should force client to download plugin ver 1.3.1_07 if there not one installed. Instead this code sometime cause my borwser to crash. At other times, it just download jre1.3.1 and does that on every visit to the page. Should not repeat the download.
What I am doing wrong? I have spent hrs trying to figure out. Any help would be greatly appreciated.
Thanks.
Y
21 years ago
All,
I am looking at usage of javascript eval method from within a java application to evlauate javascript expressions. Its works with JSObject, but the problem is I cant figure out how to obtain an instance of JSObject from a Java Class which is not an applet.
I dont want to use anything that will increase the size of the app. by more than 10 KB - why should I include complete JS engine if I all I want to do is eval!
Any help would be greatly appreciated !
thanks,
Y
21 years ago
Here is the tool you folks are looking for:
http://www.junitdoclet.org/

Happy learning.
Cheers,
Y
[ December 23, 2002: Message edited by: Yatharth Kumar ]
21 years ago
Nijesh,
Consider this approach, might work well for you:
Package your properties files in a jar file and place the jar along with other libraries that your server includes in the class path. As long as the jar is in the class path, you can read the properties files.
You can write a filter task in Ant to generate the properties files for different env. (if they are different for unit test, sit & prod.) and package them in a jar. This will form part of the distribution and can be kept separate from the EAR.
Hope this helps.
Y
Here is the link that will give you all the info on signing applets :
http://java.sun.com/products/plugin/1.3/docs/nsobjsigning.html
You might want to consider the negative first - End-users will be required to import the certificate in their jre's keystore to be able to run the signed applet. This is certainly not recommended as certificate installation should be transparent to users (as in server certificates).
Folks, please add your comments. If I am missing something, pls correct.
Y
21 years ago
Hi,
I am not sure if this post is still relevant to you .. still I will do my bit
If you are using a Swing applet, try (javax.swing.text.html)package. It has all the classes you need to implment a HTML browser/ editor.
Hope this helps.
Y
21 years ago
Hi All:
I have a signed applet, which I have generated using jarsigner and keytool provided by sun's jdk 1.3.1.
To run that applet, a client must import the certificate to its keystore. My question is - is there anyway the certificate can be imported to the default keystore (plugins keystore) automatically? Basically, it should work the same way as server certificate. End-user should not be required to use keytool to import a certificate to be able to run a signed applet.
Will appreciate any immediate help on this topic. Pls suggest appropriate resources that can guide me thru.
thanks.
Y
21 years ago
You can try using Object tag in your html that includes the applet. Syntax is as follows:
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="200" height="200" align="baseline"
codebase="http://java.sun.com/products/plugin/1.4/jinstall-14-win32.cab#Version=1,4,0,mn">
<PARAM NAME="code" VALUE="XYZApp.class">
<PARAM NAME="codebase" VALUE="html/">
<PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.4">
<PARAM NAME="model" VALUE="models/HyaluronicAcid.xyz">
<PARAM NAME="scriptable" VALUE="true">
No Java 2 SDK, Standard Edition v 1.4 support for APPLET!!
</OBJECT>
In the OBJECT tag, the codebase attribute represents the location from which to download Java Plug-in when it is not found on the local machine. This way you can specify which plugin is required for an applet to run in IE.
Hope this helps.
21 years ago
Hi,
You cannot share windows clipboard for unsinged applets. It means, if your applet is not signed (untrusted) you cannot copy something into windows clipboard and paste into the applet. You should still be able to copy-paste within the applet itself.
Try packaging the applet class file in a jar and sign it using jarsigner and keytool. You can find details on java.sun.com
Hope this helps.
Cheers
21 years ago
Hi All:
I am trying to configure applet debugging using WSAD 4.0. Theoretically, I should be able to use remote debuggin/ distributed debugging and connect to the browsers JVM to debug the applet code running in it.
I tried various options, but could not get it to work. I can however connect to the browser JVM using jdb and debug, but that too cumbersome and not dev. friendly.
Can anyone suggest a way to to that? Any immediate help will be greatly appreciated.
tia.
21 years ago