In my web application, a series of jsp pages are navigated.
These jsp pages appear on the Right Hand side (frame) of the screen.
On the left frame, I have an applet.
This applet is common to all jsps.
From all of the jsps, I want to invoke a method on the applet.
The javascript code is inside of each jsp.
Is there a way to do this ? An...
I have a basic question. Why and how SelectableChannel's register method can be in blocking call.
Let me provide a scenario.
I have created a Selector object in class Register as follows.
private static Selector selector = Selector.open();
I also have a method in same class(Register) to register the channel with the selector.
...
If a Java-program is started, it get's in the system process-monitor the name java. Many Java-programs are that way hard to distinguish. So it would be nice, if a way exists, to set the name, that will be shown in the process-monitor. I'm aware that this may work different on different operating-systems.
A simple way would be, if the j...
Hi,
I'm trying to build zimbra from source on a mac mini running on mac os x 10.4.10.
It seems that I need a file like this "jdk-1_5_0_16-linux-i586.bin" but I can't seem to find a jdk binary that is made for mac osx.
Can anybody point me to this binary?
Here is what zimbra does with the binary:
sh jdk-1_5_0_15-linux-amd64.bin
ta...
Hi everybody.
I have to code a up/download speed monitor. It will obtain the current download and upload transfer speed of the computer which it has been installed and post it to another server periodically.
c
But I don't have an idea about how to catch instant transfer rates of a computer. As you know some of network monitoring program...
I'm using java mail api 1.4.1 to obtain new emails. Two classes are being used to obtain emails and then parsing it. "GetMail" class communicates with mail server(Gmail,yahoo etc) and obtains the message object. Then the message object is passed to yet another class "MailFormatter" class, which then parses the message object, obtains the...
Is the source code for the Java shipped with Mac OS X available anywhere (official)? I know that the Sun implementation is GPL nowadays.
...
I am developing a library. I want some functionality to be additionally available in case a certain other library is in the classpath. My understanding is:
there would be a buildtime dependency, since I import from that lib and use it in places
runtime dependency is there only if the code path reaches the point where I am using somethi...
Is it possible to write a servlet filter to take inspect HTTP response codes?
I want to write a filter that will non-destructively inspect outgoing HTTP response codes. But, there does not seem to be a getResponseCode() like method on the Response object.
It is also not clear to me how unhandled exceptions from the servlet are supp...
Hi %,
in order to 'feed' a .NET web service from java I do pass xml strings
via a direct socket connection over to the server.
Everything works wunderbar as long as I don't include any 'wierd'
characters in my xml strings. Ä or ß for examples sake.
I scripted around and figured that in php5 the problem is solved by
utf8_encode(myXmlS...
Hello,
I am trying to find my java class URL in order to use it in a SWT.Browser component. My goal is to display a page located in the same folder as my .java file.
If anyone knows how to do it or has a better solution to display a local page in a SWT.Browser I would be glad to know it to ;p
Thanks in advance.
...
I am able to set one column to yellow but I am unable to set a row to yellow.
The following code does it for the column:
TableColumn col = mytable.getColumnModel().getColumn(0);
col.setCellRenderer(new MyTableCellRenderer());
How do I do it for a row please?
I have tried the tutorials and examples on the net but it always paints th...
I have a set of java code in a text file. Is it possible for me to read line by line from the text file and execute the commands as in eval function of javascript? Thanks in advance
...
following is the code listed in MainClass.java.
public class MainClass {
public static void main(String[] args) {
System.out.println("main started...");
Class c = MyClass.class ;
//this class variable seems to be public static.
//But, as it is clearly visible in the MyClas...
See topic - do you see any problem with this? I could also do new String(byte[]) and hash by String but it is more straightforward to use byte[]
...
Set<Type> union = new HashSet<Type>(s1);
And
Set<Type> union = new HashSet<Type>();
Set<Type> s1 = new HashSet<Type>();
union.addAll(s1);
...
How do you add a page number from java without using any third party library in a document and which can be treated as a new page in MS Word? Can Java create/manipulate an MS Document?
...
I'm planning on using Apache torque as my object-relational mapper (ORM), and I was wondering if anybody has any suggestions around what framework to use for presentation layer with torque. maybe Spring?
I don't know if this helps, but my application is basically going to be bunch of forms to input data and based on that data, I'll gene...
why I have to write the first statement before calling bulk operation??
Set<Type> union = new HashSet<Type>(s1);
union.addAll(s2);
...
I need to layout a panel on the top of my Dialog so that it has two buttons (Save and Cancel).
I want the save to be on the left and Cancel to be on the right side.
I've created a JPanel using the MigLayout and docked it to the north of the content pane, and can't for the life of me figure out how to add the two buttons to it so that t...