728 byte By
msankar at 2007-9-26 2:34:33
Hi,I am doing a file upload using a multi part form page and a servlet. I am also doing file size validation and redirecting the user to the same page with error message if size is more than 20 KBs.This is potentially to avoid users from trying to upload huge files and flood the system.But if ...
191 byte By
jacinle at 2007-9-26 2:36:00
hi,if I usebind(object)and later uselookup(object)do I get the same object?or is it a clone of my "bind object"thxJacinle
1862 byte By
MmarcoM at 2007-9-26 2:36:15
hi all,i have to implement a timeout in my application. i have checked some examples on the Internet and many of them includes thread.i am neither using a Socket, nor an HTTP connection, but i am simply connecting to a proprietary backend server that has not implemented any timeouts.so, hte ...
663 byte By
MbX at 2007-9-26 2:36:17
Hi,I wrote my own ClassLoader, reading "some" repository.When I write completely independent classes, I am able to load and instantiate them, but when I use the same loader, to load classes extending an already existing application, I get the following exception:java.lang.ClassFormatError: ... ...
Hi All,I opened .doc file using Runtime.getRuntime().exec(filename).. How to detect the word document was closed ? Thanks in advance.-regardsdeena
Hi All,I opened .doc file using Runtime.getRuntime().exec(filename).. How to detect the word document was closed ? Thanks in advance.-regardsdeena
557 byte By
mfarhans at 2007-9-26 2:36:55
Hello Everyone,I m having a very strange problem..for which i cant find what the problem could be..the problem is that i m running a simple java class in which i have written a finalize method where i m deallocating certain stuff...now as i run the method from the IDE (visual age) it runs ...
910 byte By
lizmarc at 2007-9-26 2:37:01
I have a requirement to create an XML file (in a servlet) with one field that has encrypted data. The rest of the file is standard tet as XML. A Visual Basic application is supposed to read the XML file I produce, generate a key and look up the encrypted field in the XML file. I'm able to ...
957 byte By
spieler at 2007-9-26 2:37:10
Hi this has (almost nothing to do with Java)I'm trying to write a UML class diagram to demonstratethe relationship of some classes.Now I have the following construct:class A{ ... }class C{ ... }class B {/**the returned collection contains C's*/public Collection getCofA(A){ ... } so one can ...
450 byte By
uditha_n at 2007-9-26 2:37:19
HiI'm writing a client server application, where the server always listen to clients. My problem is that whenever a client is disconnected abnormally (say pressing ctrl+c), the server keeps listening to the client assuming the client is still alive. I can detect this by sending a heart beat ...
901 byte By
milespj at 2007-9-26 2:37:24
I am reading data into an XML file. The data contains characters that can't be displayed because they aren't in the standard character set. They show up as boxes in most editors. The data reads with no error, and the XML data is saved.I have the XML data saved as a file. If you open the file ...
143 byte By
fabioG at 2007-9-26 2:37:59
Hi to all:Somebody knows if exists any classes, package or api that works as LDAP client?Best regards,Fabio.
Hi all!following iPlanet Directory Server Deployment Guide:About Roles...A client application can check role membership by searching the nsRole attribute, witch is computed by directory and therefore always up-to-date....My code-snippet:public NamingEnumeration search(String searchBase, String ...
558 byte By
aijung at 2007-9-26 2:38:10
I have an applet running OK with appletviewer. It however fails on Naming.lookup(String) when I tried it on Netscape withat java.lang.SecurityManager.checkConnect(SecurityManager.java:718)netscape.security.AppletSecurityException: security.Couldn't connect to 'ajax' with origin from ...
849 byte By
bgvictor at 2007-9-26 2:38:12
I managed access a Domino LDAP Directory via JNDI, for various operations like adding/deleting/updating attributes , and adding/deleting Entries.I still have a BIG issue to deal with:I was able to insert an entry to LDAP on a existing directory structure, but was unable to create such structure ...
hi,I have got a strange doubt..Please tell me if i can do this ..Suppose I have a program called get.java which get the data from user and stores it in HashMap .This Prgm is running in one command Prompt.And I have another Program called show.java in another command Prompt which will get the ...
HI, I want an opinion as to whether ALWAYS stop when an assertion is false or whether just to print a message and continue Thankx in advance...
552 byte By
geotdw at 2007-9-26 2:39:19
Hey...What my application does is, it creates a socket connection between my computer and a specified IP address. Then a file is chosen and is uploaded to that specified IP. Now this works perfect. But when i stat another application while uploading like the internet, it haults my application ...
633 byte By
imAck at 2007-9-26 2:39:40
I am running the following codeRuntime rt = Runtime.getRuntime();try {sim_process = rt.exec(command_line);sim_process.wait();} catch (java.io.IOException ioe) { . . .}The process runs correclty, as the expected output occurs. However, I get the following ...
142 byte By
JR3 at 2007-9-26 2:39:54
Does anyone know how to interface COM with Java. I need to access some third party code and I can only do it through COM.
1467 byte By
rdare at 2007-9-26 2:39:57
When I implement the compare() method for a Comparator object, how do I treat null?public int compare(Object o1, Object o2) {//// what should I do if one of these are null?//// this will probably throw a NullPointerException,// or from the javadoc, a ClassCastException.//MyObject mo1 = ...
428 byte By
aadetoro at 2007-9-26 2:40:02
This question as been posted numerous times, but noone one has provided a solution that works.It has to do with getting rid of the infamous gray background when initially loading an applet.the setbackground() function only changes the background after the applet has loaded. I know that this can ...
Hi,how do I check whether a string is null or notThankx in advance...
107 byte By
g_satija at 2007-9-26 2:40:22
i want to built an exe file in java. but dont know how to do it. can any body help me, please
94 byte By
DVijay at 2007-9-26 2:40:43
Is it possible to preserve the order in which the elements are added in HashMap?
124 byte By
ssdss at 2007-9-26 2:40:45
Is there a generic way to sort all the objects in a collection based on some specific attribute of the object?
does anyone know --if it is possible (or at least reasonably implementable) for a language to allow method overriding by return type? --what languages if any do this? --provided that it is possible, is there a particular reason java doesn't do this? ...
Hi,I have a probelm like how to get node vale from xml file if xml file contains html data.I would appreciate your help.I want retrive the value of node1 as<html><body><h1>Hello</h1></body></html> ...
460 byte By
cosrod at 2007-9-26 2:41:35
Currently, we are using the PrinterJob to print a report. We are following recommended procedures for rendering the report and calling the PrinterDialog. However, inevitably the report takes too long to spool and on some of our older printers, generates a Overrun error. This is a show stopper ...
757 byte By
geotdw at 2007-9-26 2:41:38
In my applications, one of my labels is/CODE/JLabel logo = new JLabel(new ImageIcon(test.gif")); /CODE/Now this will show in my frame since i have the image placed in the same folder as my files. Now i create an exe file of my application. This is done through the compiler by specifying the ...
2474 byte By
fcalmon1 at 2007-9-26 2:42:23
I've got this strange error:Can't i use List on an applet ?I'm using to populate a combo box...here's the code:import java.util.*;import java.awt.*;import java.sql.*;import java.applet.Applet;public class jogo extends Applet{private Label ID = new Label("Login: ");private Label senha = new ...
1159 byte By
npaila at 2007-9-26 2:42:31
Exception in DataServer.main: java.rmi.ConnectException: Connection refused to host: d54.ucs.ull.edu; nested exception is:java.net.ConnectException: Connection refusedBelow is the code where i am getting the error. Airways is a remote interface and AirwaysImpl is the remote class implementing ...
364 byte By
bhaskarg at 2007-9-26 2:42:52
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 ...
199 byte By
kenni81 at 2007-9-26 2:42:53
I saw some people having their own API page exactly like java's api doc, so i guess there must be a creatable template to create my own api doc...i wonder anyone knows how to create?..
hi all,i am doing a chat applet which must pass through the firewall. so for that i am using an urlconnection. i had done the search and find that this is the thing to be done but when i implemented it using urlConnection. its not passing through the firewall.if any one knows how to do it ...
298 byte By
zadpower at 2007-9-26 2:43:27
How do send several sockets in a queue to the receiving client side? I want to send several outputstreams but realised that it can't be done, I heard somewhere that these streams could be sent through many sockets in a queue. So anybody knows please kindly reply. Thanks.zad.
582 byte By
joka at 2007-9-26 2:43:34
Hi!I have a client (an applet) which communicates with a server via socket. It works like a charm in most cases. However, sometimes when the connection is slow I get an IOException. If I print the message provided with the IOException it look like:Socket read exception What does this really ...
413 byte By
Badri1 at 2007-9-26 2:43:37
How can i select more than one JTable rows which are not continuous/ajdacent on Mac machine. I can do this in WIndows by using the Control key + mouse, but in Mac machine Control key+ mouse work as the right click.We can select more than one row which are continuous/ adjacent by using the Shift ...
150 byte By
matt.h at 2007-9-26 2:43:45
Is there any way for an object to idenify its own non-public methods (getMethods() returns only those methods that are declared public)?
Hi,I'm new in Java. However, I need to use java to call a aplication with OLE automation. Hope You can help me.In detail, the application I need to call is Mathcad. As I said above, I'm new in Java. So I try to use Visual j++ because it seems to be more easy to use. What I want to do is creat ...
This application starts a frame that has a menu. If you click on an item in the menu, it starts several threads. One of the threads opens a modal dialog, waiting for user input. But it doesn't work (Win98, JDK1.2.2 (java, javac) and JDK1.3 (JRE but with javac 1.2.2). Tried using, on the real ...
738 byte By
Siggeman at 2007-9-26 2:44:30
Hi.In my application I'm starting up 7 threads, each one supposed to read a lots of data from an ascii file, write to a database and write back the result to another file.Somewhere in the application framework I have a memory leak.I believe the cause is one of three:1. Reading from file using ...
226 byte By
caquet at 2007-9-26 2:44:50
HiIs it possible to get the name of the method the program is running throught (the equivalent of getClass().getName(), but for the current method) ?Thanks for your help.Mathias
Hi, I am developing a remote server/client. both client and server use GUI's, the client uses RMI to call the server methods. I can get the server program running, but when I try to start the client program it keeps failing to bind to the stub and gives me a class cast exception. I previously ...
Hi, I'm working on a Palm application in a Palm Emulator connected to a SocketServer. I'm accessing SQL Server DB to retrieve items to put on my combobox. Now that I retrieved the items, I need to send them to the Palm application. Previously, I concat the items into one string, send them to ...
I want to call functions in a C API from a Java program. Can JNDI help? If so where do i start...
333 byte By
sseans at 2007-9-26 2:46:06
I am trying to start an applet from appletviewer and every time I run it I get these exceptions.My html file is in a package and so is the applet code and my html file contains the full path of the applet class file. ie c:\jdk1.3\bridgeclient\BridgeClient.classany idea what could be wrong ? ...
711 byte By
valjok at 2007-9-26 2:46:10
Ths snippet of code accepts connection, trys to read first byte and if fail occures - closes the connection and rethrows exception:1)Socket s = new Socket();2)implAccept(s);3.a) i = s.getInputStream().read();3.b)/*try {i = s.getInputStream().read();} catch (IOException ...
How can i deploy & run EJB programs in Java Forte Community edition
2879 byte By
ghaga at 2007-9-26 2:46:34
Anyone know of a way to do the following:I have the following classes: A Beanpackage untitled1;import java.io.*;/** * Title: * Description: * Copyright:Copyright (c) 2001 * Company: * @author * @version 1.0 */public class MyBean implements Serializable { public MyBean() { } private void ...