Sorted map by add order for jakarta taglib input:select's options attribute

370 byte By Puce at 2007-9-26 2:09:14
Hi,I'm currently using the jakarta taglib input in my JSP.With input:select you have to specify the options as a Map.But I want the list to display the values in the same order I added them to the Map!Any solutions? Can I use TreeMap? But then how to configure the Comparator?Thanks for any ...

Creating the class on the fly.

164 byte By rashid.amin at 2007-9-26 2:09:19
Hi all,I want to create a class not an instance on runtime. Is there any way to create a class on runtime and then get its intance?Rana.

what is JMS

127 byte By Jatin2000 at 2007-9-26 2:09:23
What is JMS and how does it work. Is it like MSMQThan what server does it use ? JAtin

String of ASCII to ASCII question...

154 byte By v2kea60 at 2007-9-26 2:09:38
Given:new String("32323232"), where 32 is the ascii decimal value for blank; How to I get a string of blanks from this?Thanks!

Enumerating threads, with their stack traces?

136 byte By anderske at 2007-9-26 2:10:08
Enumerating the threads in my process was the easy part. But is there a way to programmatically get the stack trace, too?

java.lang.NoClassDefFoundError ?

1125 byte By geotdw at 2007-9-26 2:10:12
Ok...I've had enough witht his error and whatever i've tried to fix, i just can't seem to get it to work... Please i need someone to really help me out with this...I am running my java application on MetroWorks, Code Warrior 6.0 My programs run perfect when i run it from the compiler.. I ...

AccessControlException in JDK1.1.4

474 byte By neisan at 2007-9-26 2:10:58
Hi there,My RMI server and client comunicate well when I run both in my local machine. But when I run in diferent machines I get the following error in the client:java.security.AccessControlException: access denied <java.net.SocketPermission computer07 resolve>I've heard something about ...

ClassCastException passing 'this'

1141 byte By laurieh at 2007-9-26 2:11:06
I'm getting a ClassCastException from a remote invocation whose argument is 'this', an instance of the same class I am calling.The following code illustrates what I'm doing:> class Foo extends UnicastRemoteObject implements FooI {>public void ok() throws RemoteException { ... ...

Problem with Object Writing into a file

1126 byte By RACOLA at 2007-9-26 2:11:20
Hi,My problem is simply stated but does not seem to have a simple solution.I am creating a log file which will contain any number of LogEntry objects (just little serializable objects). This log file writes each object into a file using an ObjectOutputStream. Then, when the log needs to be ...

C shared library + C++ shared library + HP-UX + JNI = problems

8101 byte By booga__ at 2007-9-26 2:11:27
I have a serious problem using an old-school C library on HP-UX. Everything works fine when I use it by itself, and on Windows everything works fine no matter what. But on HP-UX, when I try to call functions from that library from Java using JNI (java native interface), things get messed up. ...

Conditional super()

253 byte By valjok at 2007-9-26 2:11:35
How can can I realize following code? Compiler wants super to be first statement in constructor. For example in Delphi this requiriment is not mandatory.if (proxyHost != null) {super(proxyHost, proxyPort);} else {super(host, port);}

Methods using same name as constructor

796 byte By alan.mck at 2007-9-26 2:11:45
This isn't so much a problem that needs a solution, as just a request for comment (I already solved the problem):I converted an applet to a stand-alone app by renaming init() as a constructor, and took an hour to figure out why the constructor didn't run. Of course, I didn't delete the void ...

How to create a messagebox in javascript

199 byte By kaiths at 2007-9-26 2:11:53
hi , I am trying to prompt a message box which recieves the input userid and password and I need to validate the input .Can any one let me know how to do it.Thanks.

Applet needing to access the client system

1053 byte By halfhp at 2007-9-26 2:12:01
Hi,Ive got an applet that I need to be able to launch a .exe that exists on a client's computer...the applet is going to be signed etc.Ive read that it can do this if the client running it explicitly allows the applet access to the required resources...My problem is I need the applet to run ...

Memory Allocation of a thread

374 byte By madhok_rohit at 2007-9-26 2:13:04
Could anyone tell me how much memory is allocated to each thread spawned by a program using default JVM Options. Are there any JVM runtime options that could change the same. This would be highly benificial for any programmer to allocate a desired amount of memory to every thread spawned during ...

JVM

378 byte By fuchssa at 2007-9-26 2:13:40
I always wondered if the Java Virtual Machine(JVM) gets interpreted into code that uses say Win32 dll, or if not then what... Every Java call must map to a layer, dll, that has access to the hardware, which I doubt the JVM does. If the JVM does, like Microsoft's JVM, how can Sun write a fast ...

simple package problem ,please help

475 byte By sseans at 2007-9-26 2:13:45
package test;public interface Ya {public void doit(); }this is stored in cd\jdk1.3\test as Ya.java and compiled it in the same directory.NExt i makepackage test;public class make implements Ya{ public void doit() { System.out.println("Hi"); }}when I compile it in cd\jdk1.3\test it sayscannot ...

having problemas in running applets

163 byte By alwan87 at 2007-9-26 2:14:16
I ve make a JTree in applet. this applet runs fine with applet viewer but gives "Applet Class not found " message when run in browser ie or netscape.

Empty ResultSet

171 byte By yahamid at 2007-9-26 2:14:43
How can we check if the resultset returns no rows at all.Check it for null does not help even though if it is empty.Thanks,Hamid Mukhtar

scrolling graphics

2987 byte By NTK1 at 2007-9-26 2:14:58
Hi,I'm trying to make this window frame scroll graphics, it shows the scroll bar but when I try and scroll it, the graphics disappear. What am I doing wrong?I've tried the other forums but with no success.can anyone help import java.awt.*;import java.awt.Graphics2D.*;import ...

interface problem

485 byte By sseans at 2007-9-26 2:15:05
package test;public interface Ya {public void doit(); }I store and compile thisd file from c:\jdk1.3\test as Ya.java.Now packaeg test;public class make implements Ya {Public vod doit() { System.out... } }I store this in again c:\jdk1.3\test and compile from this directory javac make.java I get ...

Diff. between web server and application server

248 byte By jjai at 2007-9-26 2:15:42
Hello,Can you please state the differences between a web server and an application server? I'm confused.Can a web server be used as an application server orvice versa?Thanks in advance!With Love,Jai

SoftReference is too soft

835 byte By leoasin at 2007-9-26 2:16:07
My understanding of the SoftReference (package java.lang.ref) was that the garbage collector collects SoftReferenced object "only when it determines that where is not enough memory( and objects don't have hard references, of course)). However, this does not seems to be true. I have tried to ...

class SecureRandom not so secure!?

939 byte By kul_th_las at 2007-9-26 2:16:12
Correct me if I'm wrong (and give an explanation of why), but it seems to me the the SecureRandom class that can be used for cryptography is, by it's design, insecure. The problem lies is the seed. Now being able to seed your random number generator is great, and very useful. However, it only ...

Can I test which one owner class Child's instance.

387 byte By Dezhong_ye at 2007-9-26 2:16:25
$ cat Child.javapublic class Child{ public Child(){}//how to Know which owner the object,ParentA or ParentB?public void testParent(){}}$ cat ParentA.javapublic class ParentA{Child a;}$ cat ParnetB.javapublic class ParentB{Child b;}$ ...

RMI vs INTERNET

1755 byte By hikiran at 2007-9-26 2:17:00
hi,I wonder how good RMI works over INTERNET, I got stucked in Chat application:In the code i'm binding the server object using the command:Naming.rebind("rmi://192.9.200.66:5555/server",sobj);and in the client applet i'm looking up the server object using the command:sobj=(serverint) ...

converting 4 bytes into unsigned int and back..?

778 byte By gabadoo at 2007-9-26 2:17:01
i am using datagram sockets to send and recieve packets with online servers. when i do a certain command the server sends me a packet containing 4 bytes as a form of authentification. I need to then turn these 4 bytes into an unsigned integer, then convert the int back into a byte array so that ...

persisting a obj throughout an application

387 byte By m_key1 at 2007-9-26 2:17:06
i want to be able topersist an obj without using serialization.in a jsp you can specify a obj to have a applicationscope. i'm wondering how that can be done withoutusing jsp. can the application server the component is running on hold a reference to it or can the object hold a reference to ...

problem in simulating rmi clients

937 byte By lkavithagandhi at 2007-9-26 2:17:13
Hi All,I have implemented a simple RMI server with a simple method. Then, simulated clients using 15 threads calling getting the remore objet reference and calling a method in the server. I tested in my system without any network(localhost).It worked fine for 15 threads, when i started ...

i created a class file , if i execute this class file it has to be always o

364 byte By bhaskarg at 2007-9-26 2:17:14
i created a class file , if i execute this class file it has to be always on top if i open any other programms or applications then also this class file application has to show me on the screen top , i meas ti has to show me first and behind all applications which i opend other applications How ...

java program consuming 99% of the CPU cycles?!!help....

469 byte By aparnaVytla at 2007-9-26 2:17:15
hi, Here i am having one strange problem.i am running a simple java program on NT that has the following code.public static void main(String[] arg) { while (true) { }}Surprisingly, it is consuming 90 to 99% of the cpu time compared to other processes.Infact, i have to have this loop in my ...

i created a class file , if i execute this class file it has to be always o

364 byte By bhaskarg at 2007-9-26 2:17:16
i created a class file , if i execute this class file it has to be always on top if i open any other programms or applications then also this class file application has to show me on the screen top , i meas ti has to show me first and behind all applications which i opend other applications How ...

rmi ports

1097 byte By teka at 2007-9-26 2:17:18
Well to get back to asking about the RMI ports, I asked before and got a nice reply then. But I still need some more info. RMI uses 2 ports for connections. I need to know how to set these ports on BOTH the server and client side. I know it is possible to set them on the server side with the ...

Java IDL supports Corba Event Services?

221 byte By pizbp at 2007-9-26 2:17:41
Does Java IDL supports Corba Event Services? i am supposed to simulate a stock exchange environment. If not, is there any free IDL that support event services?Thanks in advance.Boon Ping

voice enabling chat application

246 byte By tarundeepsingh at 2007-9-26 2:17:48
hi!! alli am trying to voice enable my chat application (web-based)....can anybody suggest me right direction..i am going in for java speech API's ...if any body has any idea reagrding this pls help..thanks in advance

How can I notice whether a class is loaded or not?

126 byte By WHOSNEXT at 2007-9-26 2:17:55
In the case of a instance, finallize() method can do it. But when it is a class?Does anyone know the way?

How to create DLL without using visual c++?

119 byte By kenni81 at 2007-9-26 2:18:03
How to i create DLL without using visual c++? This is for creating the shared library to be used for JNI.

Accessing Browser through Java

667 byte By mohitbhatt4 at 2007-9-26 2:18:04
I just wanted to know how can i interact with a web browser using Java. Theproblem goes like this.....If i have a Web-Page running in a browser and that web page contains framesthen in such a case how can my java program come to know what is there insidethe frames and what activity is taking ...

Garbage collection

525 byte By code_man at 2007-9-26 2:18:13
The garbage collection in Java can free the object no longer in use for me. But before that, does the garbage collection erase the data first (i.e. set the actual value to zero or some other value)?I asked this question becasue I would like to find out:I define some sensitive data in the ...

JDBC past a firewall - HELP!?

353 byte By gtoofany at 2007-9-26 2:18:20
Problem:I want to connect to a database on a server inside a firewall. How can this be done? We usually connect to development servers inside the wall by connecting to the firewall, and then telnetting and using a terminal emulator. This is a new problem though, and it's urgent. Can anyone ...

what the usage of "java.rmi.server.codebase"

3124 byte By mymymymycn at 2007-9-26 2:18:34
I test the rmi progamminghere are all the files\\\\\\\\\\\\\\\\\\\\\\\\\\\\\myrmi.javaimport java.rmi.Remote; import java.rmi.RemoteException; public interface myrmi extends Remote{public String getStr(String s) throws RemoteException;}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\myrmiimpl.javaimport ...

Save X Rays.

56 byte By niy8 at 2007-9-26 2:18:45
How can we save x rays to database?

Delegate.invoke implementation

480 byte By gaurav15 at 2007-9-26 2:19:00
I am using jdk 1.4 beta. I am tryin to invoke a call froma java client using rmi-iiop. But whenever it tries to make a method call, it just hangs. After quite some time, i found out that the stub generated calls ObjectImpl.invoke(object, true) which in turn delegates the call to ...

Monotoring serialized objects

231 byte By d97te at 2007-9-26 2:19:04
Is there a way to monitor which objects is really serialized to my ObjectOutputStream. I want to make sure that I do not send a lot of unnecessery objects on the network since references to objects is also serialized.

Persitence

511 byte By wwe8 at 2007-9-26 2:19:49
Hi,I am writing a java application and need to persistently store the data i am creating. My problem is that during development, the objects I am storing may change and could cause serialization errors.Does anyone have any opinions on the best way to persistently store data. I have looked at ...

super in constructor.

564 byte By valjok at 2007-9-26 2:19:57
Help, Java does not allow super to be second statement in constructor. I have tricked the compiler using following construction:Socket.super(System.getProperty("http.proxyHost", host), Integer.parseInt(System.getProperty("http.proxyPort", String.valueOf(port))));So actually super is third ...

another socket question

857 byte By tasoss at 2007-9-26 2:20:01
hello ppli'm using 2 thread in order to manipulate the input and output streams of a specific socket...the problem is that i want after a command is sendthe result to be shownin my case i can see the commands that i send(using system.out.println) but the results are shown after...this is what ...

java.lang.OutOfMemoryError

386 byte By tbouck at 2007-9-26 2:20:10
Hi all,Why is it possible to receive a java.lang.OutOfMemoryError? I thought that when you ran out of memory, the garbage collector ran. This takes a long time and locks up the processor, so it may be disruptive to clients communicating with the JVM (rmi, servlet clients, etc) but when it ...

$$$ CONVERT A MS ACCESS DATABASE INTO .TXT (5 Duke Dollars to get) $$$

218 byte By labeller at 2007-9-26 2:20:25
Hi to all of you,I'm trying to convert in Java language a Ms Access database into a .TXT (Notepad).If you have any advice, that will be fine.Thank you & best regards.Eddie

RMI & Dynamic Proxies

477 byte By bgbahoue at 2007-9-26 2:20:27
Hi all,I read that you could use dynamic proxies (from the JDK 1.3) to build remote proxies that masks the fact that an application is trying to access a remote object. I just can't find anything more than a few lines in that articles ...