| JTK - Care to comment on this? |
|
 |
Index ‹ java-programmer
|
- Previous
- 1
- contributiscusate ho sbagliato mira
"Laura" <email***@***.com> ha scritto nel messaggio
news:cnMSg.126457$email***@***.com...
> ma un informatico con p.iva fa parte dei lavoratori autonomi a cui
> verranno aumentati del 2%
> o dei lavoratori atipici a cui saranno aumentati del 5%?
>
- 1
- Java UML tutorialsThere's a good tutorial on UML with corresponding Java code at
http://www.parlezuml.co.uk/tutorials/java/class/index.htm
So far there's only one on class diagrams, but there's quite a few
much more advanced UML tutorials aimed at C# developers that this one
seems to be a "port" of, so expect more tutorials soon.
designman
- 3
- Need convert to postscript before printing?I want to print files which are stored in a folder. From many forum, i
found that printer can only receive postscript format, and if i want to
print pdf or microsoft office files, i need to convert it to postscript
before send to printer.
Am i right? Can anyone gives opinion how to make it simple?
- 5
- Help for Windows CEHi
I'm a student and I need to develope an application in java for
Windows CE.
Now I've installed on my pc Eclipse and a sun virtual machine for
windows XP.
My question is: What I can do in order to use my eclipse for develope
an application for my pocket pc with windows CE?
How I can do for make graphical applicationin windows CE? Under
Windows I use the VE plugin but under winCE what I can do for this
problem?
thank very much for all people who help me!
Fabrizio Dominici
- 5
- Tweaking DefaultTreeCellRendererHello,
I'm implementing Drag & Drop for my JTree and I got everything working so far.
There is only one thing that I'd like to add: I would like to highlight the node
that is the current drop target somehow. I did manage to select the node
during my dragEnter() and dragOver() events, but I'd rather not change the
tree's selection during dragging.
So I thought I could customize the TreeCellRenderer used. What I did is the
following:
I extended DefaultTreeCellRenderer and added a method to set the current drop
target row. When creating my tree I set the new renderer as the tree renderer
(which is working because I can see the methods beeing called when adding a
System.out.println())
The I overwrote getTreeCellRendererComponent(). Before calling the
super.getTreeCellRendererComponent() I check if a drop target row is set, and if
it is I pretend the cell is focused:
public Component getTreeCellRendererComponent(JTree tree,
Object value,
boolean sel,
boolean expanded,
boolean leaf,
int row,
boolean hasFocus)
{
boolean drawFocus = hasFocus;
if (this.dropTargetRow != -1 && row == this.dropTargetRow)
{
drawFocus = true;
}
return super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf,
row, drawFocus);
}
But this does not work. I have added debuggin code and the dropTargetRow
variable is set and initialized correctly.
What am I missing here? When I pass a hardcoded true or false to the super call,
it does work (all nodes either always focused or never)
Thanks for any input
Thomas
- 6
- eclipseJohn Bailo wrote:
> http://www.eclipse.org
>
The Eclipse IDE is very huge and bloated. You might
want to take a look at one of these alternatives:
http://jedit.org
Supports several development languages and a huge
assortment of feature plugins. You can script out
your own shell tools as macros and make them available
as buttons on your toolbar.
http://netbeans.org
Similar to JEdit but with a GUI designer for Java apps.
Also lots of plugins and multi-language support.
The nice thing about having IDEs written in Java is
the cross-platform support; using the same environment
on any Java-enabled OS.
- 6
- Setting Appender's fields in Apache's Log4JHi,
In the following code snippet (which is written to create a
FileAppender & make log4J log to that file):
import org.apache.log4j.*;
class sample
{
....
HTMLLayout layout = new HTMLLayout();
layout.TITLE_OPTION = "DataSE Log";
String logFileName = "Log.txt";
Appender appender = new FileAppender(layout, logFileName, true);
appender.immediateFlush = false;
appender.bufferedIO = true;
appender.bufferSize = 64;
Logger logger = Logger.getLogger();
logger.addAppender(appender);
.....
}
the above snippet is not inside any method. Its directly within the
class. In the above snippet, I am encountering 2 types of errors:
1. Am using the fields of the classes FileAppender & layout. The usage
seems to be wrong, because am getting the error "'synatx error on
token(s); misplaced construct(s)" & similar errors.
2. how to specify the bufferSize? Just as '64' or '64K'?
Thanks.
- 7
- 7
- most software jobs are software maintenance rather than new development?
>> If the code were written with copious unit tests, and if they still
>> passed no matter how old the original effort, then you don't need such
>> expertise to maintain it.
>Dubious at best. Obviously you only have read well written/refactored code
I think someone can only see the world through TDD glasses :)
-Scott Frye
"aut viam inveniam aut faciam"
- 10
- 11
- 12
- free java datetimepickerhi,
if you need a datetimepicker-control for java,
you can find one on my side:
http://www.software47.de/eng/software/datetimepicker/datetimepicker_en.htm
it's absolutely free, you can use it as you like.
since i was looking for a free datetimepicker myself, but found nothing, I
wrote one the last days...
If you find bugs or have ideas to better it up, let me know.
Java 1.4 is needed! (because of frame.setundecorated...)
kind regards wolfgang
- 13
- singlethreadmodel vs. synchronizeI have a book that is explaining servlets and implements
singlethreadmodel instead of using synchronize with wait and notify.
does that only work with servlets? which is better?
- 14
- Applet, use seperate classHi I am making a applet that uses a seperate class, but my IDE tells me
that when I try to use my seperate class, that it cannot resolve the
symbol (ie cant find it) ,or if I try to import the class, that it
expects a '.'. Here's the code
import java.awt.*;
public class Buiding
{
private int width, height, topBuffer, sideBuffer, widthOfWindow,
heightOfWindow,
heightOfThird;
public Buiding(int width, int height)
{
this.width = width; this.height = height;
topBuffer = height/20;
sideBuffer = width/20;
widthOfWindow = width/10;
heightOfWindow = height/10;
heightOfThird = height/3;
}
public void draw(int x, int y, Graphics page)
{
int origionalX = x, origionalY = y;
page.drawRect(x, y, width, height);
int randomXWidth = x - widthOfWindow;
int randomX = (int)(Math.random()*randomXWidth);
int randomYWidth = y + heightOfThird - 2*topBuffer -
heightOfWindow;
int randomY = (int)(Math.random()*randomYWidth);
randomX += x;
randomY += y;
page.fillRect(randomX,randomY,widthOfWindow,heightOfWindow);
}
}
import java.applet.Applet;
import java.awt.*;
import Building; //stops here
public class test extends Applet
{
private Building test; // or here if the above line is not there
public void init()
{
test = new Building(100,100);
}
public void paint(Graphics g)
{
test.draw(10,10,g);
}
}
Thanks for any help
- 15
- Eclipse Tomcat Project StructureHi All,
I am using Eclipse 3.0 with a Tomcat plug in.
I am trying to create multiple web projects using Tomcats webapps
directory. Eclipse will let me set up one project with under the webapps
folder but when I try to add a new project I get the following error
C:/jakarta-tomcat-4.1.30/webapps and C:/jakarta-tomcat-4.1.30/webapps
overlap.
This I am sure will have a simple explanation... I am thinking that it
should be ok to work on multiple web projects with different names at the
same time under Tomcats webapps folder ?
Thanks in advance
Jim
|
| Author |
Message |
Michael N. Christoff

|
Posted: 2004-6-3 21:48:00 |
Top |
java-programmer, JTK - Care to comment on this?
Java vs C and C++
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
l8r, Mike N. Christoff
|
| |
|
| |
 |
JTK

|
Posted: 2004-6-4 11:09:00 |
Top |
java-programmer >> JTK - Care to comment on this?
Michael N. Christoff wrote:
> Java vs C and C++
> http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
>
>
>
> l8r, Mike N. Christoff
No Mike, I don't. I've been seeing "benchmarks" claiming to show that
Java is "almost as fast as C++", "fast enough", "in some cases maybe
even slightly faster than C++", blah blahblah blah blah since the very
inception of Java. It was not true then, it isn't true now, and it will
never be true. Furthermore, you and the rest of the Java "Community
Process" know that, or you wouldn't have to keep pushing these "benchmarks".
And you'd be using 100% Pure Java apps. Which of course you don't. Why
is that Mike? Care to comment on that?
l8r, JTK
|
| |
|
| |
 |
Luke Tulkas

|
Posted: 2004-6-5 0:28:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"JTK" <email***@***.com> wrote in message
news:VIRvc.2208$email***@***.com...
> Michael N. Christoff wrote:
> > Java vs C and C++
> > http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
> >
> >
> >
> > l8r, Mike N. Christoff
>
> No Mike, I don't. I've been seeing "benchmarks" claiming to show that
> Java is "almost as fast as C++", "fast enough", "in some cases maybe
> even slightly faster than C++", blah blahblah blah blah since the very
> inception of Java. It was not true then, it isn't true now, and it
will
> never be true. Furthermore, you and the rest of the Java "Community
> Process" know that, or you wouldn't have to keep pushing these
"benchmarks".
Like you keep pushing your java's-dead(-again) kind of FUD?
> And you'd be using 100% Pure Java apps. Which of course you don't.
I do.
> Why
> is that Mike? Care to comment on that?
>
> l8r, JTK
|
| |
|
| |
 |
Michael N. Christoff

|
Posted: 2004-6-5 8:54:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"JTK" <email***@***.com> wrote in message
news:VIRvc.2208$email***@***.com...
> Michael N. Christoff wrote:
> > Java vs C and C++
> > http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
> >
> >
> >
> > l8r, Mike N. Christoff
>
> No Mike, I don't. I've been seeing "benchmarks" claiming to show that
> Java is "almost as fast as C++", "fast enough", "in some cases maybe
> even slightly faster than C++", blah blahblah blah blah since the very
> inception of Java. It was not true then, it isn't true now, and it will
> never be true. Furthermore, you and the rest of the Java "Community
> Process" know that, or you wouldn't have to keep pushing these
"benchmarks".
>
> And you'd be using 100% Pure Java apps. Which of course you don't. Why
> is that Mike? Care to comment on that?
>
I use LimeWire which is a Java app. I also used Maestro, the Mars Rover app
developed by the Jet Propulsion Labs. In the past I also used Java-ICQ.
l8r, Mike N. Christoff
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-15 5:37:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>Java vs C and C++
>http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
>
At the page: "Java program startup is slow... But while it might explain user's
impressions, it does not explain why many programmers... share our belief."
When you base something on the users being wrong, your whole point is usually
wrong. For servers or canned tests, Java may be almost as fast as C. But, when
it comes to client apps and applets, Java will always be slower than a
well-written C program because it uses more memory and takes longer to start
up.
The bit about the startup times should have been placed at the top of the page,
instead of being relegated to the bottom.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
Michael N. Christoff

|
Posted: 2004-6-15 8:00:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"Lonewackodotcom" <email***@***.com> wrote in message
news:email***@***.com...
> >Java vs C and C++
> >http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
> >
>
> At the page: "Java program startup is slow... But while it might explain
user's
> impressions, it does not explain why many programmers... share our
belief."
>
> When you base something on the users being wrong, your whole point is
usually
> wrong. For servers or canned tests, Java may be almost as fast as C. But,
when
> it comes to client apps and applets, Java will always be slower than a
> well-written C program because it uses more memory and takes longer to
start
> up.
>
I don't think the fact that a Java app may use more memory would have a huge
effect on performance once its loaded. The best Java app I have used so
far, up there with Eclipse, is BEA Weblogic Workshop 8.1. While it uses a
LOT of memory (however it admittedly does a lot of things), it matches
window's look and feel exactly and the GUI is extremely fast. At first I
thought they had written the GUI natively, but later found out it was
vanilla Swing.
Also note that BEA Workshop uses its own optimized proprietary vm. In other
words, it often does not make sense to describe 'Java' as being slow as
opposed to 'Java apps are slow when run on this particular vm'. All vms
have their plusses and minuses, each one makes its own unique trade offs.
There is no monolithic hierarchy of performance for any set of language
implementations. There will always be overlaps in performance and general
messiness.
> The bit about the startup times should have been placed at the top of the
page,
> instead of being relegated to the bottom.
>
It depends on how the application is typically used (assuming that the
startup time is not outrageously slow). For example, a program to trade
stocks would typically be turned on in the morning and left on until the
market closes. In this case a slower startup time, although annoying, is
not that big a deal. As for memory/cpu, 512MB/~2Ghz is currently standard
for new pcs. This is adequate to run java client apps. This time next year
soccer moms will probably be buying 3GHz+ pcs from Dell with 1GB of ram
standard.
If interested, check out workshop in this devx rticle.
Stop Speculating, Start Building: A Step-by-step Guide to Building Web
Services with WebLogic Workshop 8.1 and MySQL
http://www.devx.com/getHelpOn/Article/15944/0/page/1
l8r, Mike N. Christoff
|
| |
|
| |
 |
Roedy Green

|
Posted: 2004-6-15 8:47:00 |
Top |
java-programmer >> JTK - Care to comment on this?
On 14 Jun 2004 21:37:03 GMT, email***@***.com
(Lonewackodotcom) wrote or quoted :
> Java will always be slower than a
>well-written C program because it uses more memory and takes longer to start
>up.
Not so any more. The reason java is slow to start is it has to load
classes. If you statically compile so all classes are already loaded
you start up just as smartly as C. You can further use DLLs to keep
the standard classes loaded most of the time further speeding startup.
See http://mindprod.com/jgloss/nativecompiler.html
http://mindprod.com/jgloss/jet.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-15 12:27:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>I don't think the fact that a Java app may use more memory would have a huge
>effect on performance once its loaded.
Well, let's see. How many RAM-hungry apps can I have running? How many
non-RAM-hungry apps can I have running? Does starting and running a RAM-hungry
app have an affect on the OS, such as creating a demand for swap space, taking
resources that other apps could use, etc. etc. etc. Of course, if you have 2
gigs of RAM and your machine is dedicated to running that one app, it doesn't
matter. But, in the real world of real users, it does matter.
>As for memory/cpu, 512MB/~2Ghz is currently standard
>for new pcs. This is adequate to run java client apps.
I don't know how long you've been around here, but I've been hearing "just wait
'til next year!" for some years now.
> This time next year
>soccer moms
Mmmm... soccer moms.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-15 12:45:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>Not so any more. The reason java is slow to start is it has to load
>classes. If you statically compile so all classes are already loaded
>you start up just as smartly as C. You can further use DLLs to keep
>the standard classes loaded most of the time further speeding startup.
Of the eight choices at the first link, only the first involves compiling to a
native executable. The other seven involve interpreted Java code. In any case,
let me refine my original statement: both interpreted Java and Java compiled
into a native executable will always be slower than a well-written C program
because it uses more memory and takes longer to start up and also because the C
programmer has (almost) complete control over the program. Of course, the
compiler inserts standard code into the executable, but that can be eliminated.
For instance, compare how long one of your MASM programs (for instance
BootSave/BootRest) take to startup and execute. Then write the same program in
Java and compile it with a native compiler. The MASM version will always be
faster and use less memory.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
Roedy Green

|
Posted: 2004-6-15 13:38:00 |
Top |
java-programmer >> JTK - Care to comment on this?
On 15 Jun 2004 04:26:43 GMT, email***@***.com
(Lonewackodotcom) wrote or quoted :
>
>Well, let's see. How many RAM-hungry apps can I have running? How many
>non-RAM-hungry apps can I have running? Does starting and running a RAM-hungry
>app have an affect on the OS, such as creating a demand for swap space, taking
>resources that other apps could use, etc. etc. etc. Of course, if you have 2
>gigs of RAM and your machine is dedicated to running that one app, it doesn't
>matter. But, in the real world of real users, it does matter.
Would you kindly stop changing your phony id. I am tired of listening
to you and I am getting pissed with you messing with my killfile.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
| |
|
| |
 |
Michael N. Christoff

|
Posted: 2004-6-16 1:02:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"Lonewackodotcom" <email***@***.com> wrote in message
news:email***@***.com...
> >Not so any more. The reason java is slow to start is it has to load
> >classes. If you statically compile so all classes are already loaded
> >you start up just as smartly as C. You can further use DLLs to keep
> >the standard classes loaded most of the time further speeding startup.
>
> Of the eight choices at the first link, only the first involves compiling
to a
> native executable. The other seven involve interpreted Java code. In any
case,
> let me refine my original statement: both interpreted Java and Java
compiled
> into a native executable will always be slower than a well-written C
program
> because it uses more memory and takes longer to start up and also because
the C
> programmer has (almost) complete control over the program. Of course, the
> compiler inserts standard code into the executable, but that can be
eliminated.
>
Unless you're talking about inline assembly language...
---
<previously written>
Martin Girard
In short: An automatic mechanism can never outperform an equivalent manual
one.
Mike N. Christoff
I don't know... It sounds intuitively correct, but empirical evidence is
empirical evidence. If you can find some flaw in the tests or testing
methodology I'd be more than happy to hear about it.
Martin Girard
It's more than just *intuitively* correct. It has a lot to do with the fact
that an automatic mechanism is foreign to the application itself and need to
rely on guesses and assumptions, whereas a programmer can eliminate them by
doing things manually.
Mike N. Christoff
Flexibility is good, but flexibility in terms of optimizing C++ code does
not always translate into what needs to be optimized on the machine code
level. Programmers may think what they are doing is optimizing but often do
not consider how that code will be translated into cpu instructions whose
performance depends on things like caches, number of cpu registers, fpu
performance, cpu extensions like mmx, sse1 and sse2 etc... As low level as
C++ is compared to Java it is still a high-level language. With regard to
assembly language, I totally agree with your flexibility argument.
</>
---
Java vs C and C++
http://www.idiom.com/~zilla/Computer/javaCbenchmark.html
Again, as per usual, people making negative comments about this do not seem
to have read the whole article. If you can point out flaws in the
benchmarks, the ACM papers, or in the methodology then please do so. Also,
if you can find flaws in the arguments used (ie: like that memory locality
achieved by gc can be better for performance vs hand-coded memory management
because it is able to keep more data in hardware caches. (See from the
article: "perl was one of several programs that ran faster when converted to
use a garbage collector..."). How the 'freedom/control' allowed by pointer
arithmetic actually makes many machine code optimizations that are simple in
Java infeasible in C/C++, etc...).
Some papers...
K. Reinholtz
Java will be faster than C++
ACM Sigplan Notices, 35(2) 25-28 Feb 2000.
Benjamin Zorn
The Measured Cost of Conservative Garbage Collection Software
Practice and Experience 1992.
l8r, Mike N. Christoff
|
| |
|
| |
 |
Mark Thornton

|
Posted: 2004-6-16 2:44:00 |
Top |
java-programmer >> JTK - Care to comment on this?
Lonewackodotcom wrote:
>
> For instance, compare how long one of your MASM programs (for instance
> BootSave/BootRest) take to startup and execute. Then write the same program in
> Java and compile it with a native compiler. The MASM version will always be
> faster and use less memory.
>
Not necessarily. Some CPU are becoming too complicated to generate
optimal code by hand unless the task is trivial. This may well get worse
in future. Of course if you have unlimited time to write your assembler
code then go for it, but most of us have better things to do with our time.
Mark Thornton
|
| |
|
| |
 |
Roedy Green

|
Posted: 2004-6-16 3:05:00 |
Top |
java-programmer >> JTK - Care to comment on this?
On Tue, 15 Jun 2004 19:44:07 +0100, Mark Thornton
<email***@***.com> wrote or quoted :
>Not necessarily. Some CPU are becoming too complicated to generate
>optimal code by hand unless the task is trivial. This may well get worse
>in future. Of course if you have unlimited time to write your assembler
>code then go for it, but most of us have better things to do with our time.
On the other hand, writing code in assembler invests X dollars. How
long does it take to recoup it when cpu cycles and RAM are so cheap?
It really only pays now for methods used very frequently and very
widely.
Not even OS's have that much assembler in them any more.
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
| |
|
| |
 |
The Ghost In The Machine

|
Posted: 2004-6-16 4:00:00 |
Top |
java-programmer >> JTK - Care to comment on this?
In comp.lang.java.advocacy, Roedy Green
<email***@***.com>
wrote
on Tue, 15 Jun 2004 00:47:01 GMT
<email***@***.com>:
> On 14 Jun 2004 21:37:03 GMT, email***@***.com
> (Lonewackodotcom) wrote or quoted :
>
>> Java will always be slower than a
>>well-written C program because it uses more memory and takes longer to start
>>up.
>
> Not so any more. The reason java is slow to start is it has to load
> classes. If you statically compile so all classes are already loaded
> you start up just as smartly as C. You can further use DLLs to keep
> the standard classes loaded most of the time further speeding startup.
>
> See http://mindprod.com/jgloss/nativecompiler.html
> http://mindprod.com/jgloss/jet.html
>
Erm...Pedant Point. Loading a DLL can be as bad as loading a class.
I'd have to benchmark it, though, to get a good comparison, but
a typical code load sequence is as follows:
- open file
- read header from file
- determine size of file
- call mmap()
- create process and run
- process faults in pages, loading the file
If DLLs are involved the sequence is similar; each DLL has a header
and the pages fault in as the program runs -- PC needs a page?
Fault it in if it's not already in.
Java's sequence may involve reading the entire file (I'm not sure
if Java calls mmap() during classload, or not) but the problem
appears extremely similar at this level. Whether it continues
to be similar is not clear; one issue for instance is address
fixup resolution.
Unfortunately for Java jar files involve decompression.
I don't know which wins, the decompression size (which
means fewer pages are read from disk) or the decompression
CPU load (which means they need to be processed more
before actual use). There's also the issue that a jar
file may have to be read in its entirety to be properly
processed -- which is a bit of a benchmark-killer, AFAICT,
if it's not already in memory (e.g., Linux and (AFAIK)
NT keep pages from a file in memory if they're not more
urgently needed by running programs).
And then there's Java's VM/JIT system.
All in all, an interesting comparison.
--
#191, email***@***.com
It's still legal to go .sigless.
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-16 5:33:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>Of course, the
>> compiler inserts standard code into the executable, but that can be
>eliminated.
>>
>
>Unless you're talking about inline assembly language...
I was referring to the answer to this question:
http://groups.google.com/groups?selm=BNSA6.17706%24IJ1.1393239%40bgtnsc05-
news.ops.worldnet.att.net
as well as other boilerplate code the development system inserts behind your
back.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-16 5:37:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>Lonewackodotcom wrote:
>>
>> For instance, compare how long one of your MASM programs (for instance
>> BootSave/BootRest) take to startup and execute. Then write the same program
>in
>> Java and compile it with a native compiler. The MASM version will always be
>> faster and use less memory.
>>
>
>Not necessarily. Some CPU are becoming too complicated to generate
>optimal code by hand unless the task is trivial. This may well get worse
>in future. Of course if you have unlimited time to write your assembler
>code then go for it, but most of us have better things to do with our time
Those MASM apps are about 30k. As in 30,000 bytes. How much RAM does any Java
app - whether interpreted or compiled to native code - take? On a Java CPU the
Java might be faster or similar, but loading all that stuff takes lots of time
under a regular CPU. Of course there are tradeoffs and I'd tend to prefer Java
to other things, however at the same time one has to be intellectually honest
about Java rather than saying it's always or almost always the best thing since
sliced bread.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
Michael N. Christoff

|
Posted: 2004-6-16 6:15:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"Lonewackodotcom" <email***@***.com> wrote in message
news:email***@***.com...
> >Lonewackodotcom wrote:
> >>
> >> For instance, compare how long one of your MASM programs (for instance
> >> BootSave/BootRest) take to startup and execute. Then write the same
program
> >in
> >> Java and compile it with a native compiler. The MASM version will
always be
> >> faster and use less memory.
> >>
> >
> >Not necessarily. Some CPU are becoming too complicated to generate
> >optimal code by hand unless the task is trivial. This may well get worse
> >in future. Of course if you have unlimited time to write your assembler
> >code then go for it, but most of us have better things to do with our
time
>
> Those MASM apps are about 30k. As in 30,000 bytes. How much RAM does any
Java
> app - whether interpreted or compiled to native code - take? On a Java CPU
the
> Java might be faster or similar, but loading all that stuff takes lots of
time
> under a regular CPU. Of course there are tradeoffs and I'd tend to prefer
Java
> to other things, however at the same time one has to be intellectually
honest
> about Java rather than saying it's always or almost always the best thing
since
> sliced bread.
>
That's true, however even in the link I posted, Java does not win every
benchmark. C is faster in many of the tests, and in some by a signifigant
margin at that. However, my point about relative performance of A vs B not
always being a case of A > B for all conceivable tasks and inputs (or B > A)
applies.
l8r, Mike N. Christoff
|
| |
|
| |
 |
Michael N. Christoff

|
Posted: 2004-6-16 6:19:00 |
Top |
java-programmer >> JTK - Care to comment on this?
"Lonewackodotcom" <email***@***.com> wrote in message
news:email***@***.com...
> >Lonewackodotcom wrote:
> >>
> >> For instance, compare how long one of your MASM programs (for instance
> >> BootSave/BootRest) take to startup and execute. Then write the same
program
> >in
> >> Java and compile it with a native compiler. The MASM version will
always be
> >> faster and use less memory.
> >>
> >
> >Not necessarily. Some CPU are becoming too complicated to generate
> >optimal code by hand unless the task is trivial. This may well get worse
> >in future. Of course if you have unlimited time to write your assembler
> >code then go for it, but most of us have better things to do with our
time
>
> Those MASM apps are about 30k. As in 30,000 bytes. How much RAM does any
Java
> app - whether interpreted or compiled to native code - take? On a Java CPU
the
> Java might be faster or similar, but loading all that stuff takes lots of
time
> under a regular CPU. Of course there are tradeoffs and I'd tend to prefer
Java
> to other things, however at the same time one has to be intellectually
honest
> about Java rather than saying it's always or almost always the best thing
since
> sliced bread.
>
btw - I can understand people being wary of memory usage (disk or ram
memory). I remember being shocked, after starting out in x86 assembler
language and using interrupts to print text to the screen, how my first C
program (which did nothing but print 'hello, world') compiled to over 1K on
disk. The equivalent asm program was under 100 _bytes_.
l8r, Mike N. Christoff
|
| |
|
| |
 |
lonewackodotcom

|
Posted: 2004-6-16 7:14:00 |
Top |
java-programmer >> JTK - Care to comment on this?
>Would you kindly stop changing your phony id. I am tired of listening
>to you and I am getting pissed with you messing with my killfile.
Well, I never!
I certainly hope you think this is JTK, because otherwise I am deeply offended!
Here's a hint to my identity:
http://groups.google.com/groups?q=group%3Acomp.lang.java.advocacy+%22chris
+kelly%22&ie=UTF-8&hl=en
I use AOL because it's free. That means I can't use Agent and am thus forced to
use AOL's newsreader.
Now, let's turn this into a long discussion about Gary Sickle.
-- The Lonewacko Blog
http://lonewacko.com/blog
|
| |
|
| |
 |
Roedy Green

|
Posted: 2004-6-21 23:58:00 |
Top |
java-programmer >> JTK - Care to comment on this?
On 14 Jun 2004 21:37:03 GMT, email***@***.com
(Lonewackodotcom) wrote or quoted :
>But, when
>it comes to client apps and applets, Java will always be slower than a
>well-written C program because it uses more memory and takes longer to start
>up.
There are two "its" starting up. -- the JVM and the Applet itself.
The first time you use an Applet in each session you have to load the
JVM, which takes a fair hunk of time. Then the Applet itself has to
start which is pretty quick since class files are so small and the
jars are compressed.
There are many things that Sun could do to start up the JVM faster.
See http://mindprod.com/projects/gespenster.html
and
http://mindprod.com/projects/suspendedanimation.html
However, Sun don't seem that interested. They are focusing on server
side where startup time is almost irrelevant.
Perhaps an Echidna approach could be used to share a single JVM
between browser and desktop for simple utilities and Applets.
http://mindprod.com/jgloss/echidna.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
|
| |
|
| |
 |
| |
 |
Index ‹ java-programmer |
- Next
- 1
- Torque and WebsphereWe are implenting a J2EE project where WebSphere is handling
connection pooling for the application calls to a database. We have a
JDBC Resource configured which tested successfully. We also have the
application successfully connecting to the database which is confirmed
by the following error message.
rethrown as org.apache.torque.TorqueException: [IBM][CLI Driver][DB2]
SQL0204N "TSTUSER.PERMISSION" is an undefined name.
The problem is apparent, TSTUSER does not own a table called
PERMISSION and in fact this table is owned by the user TELUSER and our
intention is for TSTUSER to execute DML against it. We have not been
able to configure the schema.xml file nor the build.properties to
instruct Torque to produce SQL that fully qualifies the object name
with the appropriate schema owner. Any advice you might offer will be
appreciated.
Best regards
- 2
- Mystery of the Shrinking JScrollPaneI've got a slight mystery that I can't fathom, and was wondering if someone
could help me understand what I've done wrong.
I'm trying to create a simple interface within a defined width and height.
It consists of a top half, and a bottom half.
The top half is a sideways-scrolling panel containing a bunch of smaller
panels side-by-side, in a GridLayout. This can expand to fit the width of
the overall UI, but must never take more height than it actually needs to
show the smaller panels in full.
The bottom half is simply a panel, which should absorb all extra height and
width.
If I add sufficient images to NOT exceed the width of the overall UI,
everything works as expected; the JScrollPane expands to fit the images'
height into its viewport, and the filler panel below takes up the slack.
But if I add another small panel, enough to exceed the width of the overall
UI, it goes wrong; the JScrollPane shrinks to practically nothing. I have
set the preferred height of the small panels and of the panel they sit in
(which is inside the scroll pane), so it's not as if it shouldn't be able to
figure out how tall it should be; after all, it figured it out when they
didn't exceed the width.
I just can't understand why it should suddenly shrink.
Here's an applet that will demonstrate the problem:
First, the HTML file to run it:
<HTML>
<HEAD>
<TITLE>TestShrinkingScrollPane</TITLE>
</HEAD>
<BODY>
<APPLET code="JTestShrinkingScrollPaneApplet.class" width="840"
height="640"></APPLET>
</BODY>
</HTML>
Now the single java source file to compile (compiling using 1.4.1_03),
JTestShrinkingScrollPaneApplet.java :
import javax.swing.JApplet;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.Insets;
/**
*
*/
/**
* @author Jason
*
*/
public class JTestShrinkingScrollPaneApplet extends JApplet
{
/**
*
*/
private static final long serialVersionUID = 1L;
public void init()
{
final int NUM_SMALL_PANELS = 5 ;
// Add a panel with GridBagLayout to the content pane as our root
component.
JPanel backPanel = new JPanel();
backPanel.setBackground(Color.RED);
backPanel.setLayout(new GridBagLayout() );
getContentPane().add(backPanel);
// Create our panel that will scroll sideways, and its contents.
JPanel scrollablePanel = new JPanel();
scrollablePanel.setBackground(Color.BLUE);
scrollablePanel.setLayout(new GridLayout(1, NUM_SMALL_PANELS, 0, 0) );
// No gaps between cells. Unlike FlowLayout(), this forces it on to one
row.
for (int panelIndex = 0 ; panelIndex < NUM_SMALL_PANELS ; panelIndex++)
{
JPanel smallPanel = new JPanel();
smallPanel.setBackground(Color.YELLOW);
smallPanel.setPreferredSize(new Dimension(160, 110) );
scrollablePanel.add(smallPanel);
}
// With no gaps between cells, the overall size needed is obvious:
scrollablePanel.setPreferredSize(new Dimension(160 * NUM_SMALL_PANELS,
110) );
// Create the bottom panel, that will absorb the extra height available.
JPanel fillerPanel = new JPanel();
fillerPanel.setBackground(Color.GREEN);
// Now create the grid bag.
GridBagConstraints constraints = new GridBagConstraints();
constraints.anchor = GridBagConstraints.CENTER ;
constraints.gridheight = 1 ;
constraints.gridwidth = 1 ;
constraints.gridx = 0 ;
constraints.insets = new Insets(0, 0, 0, 0);
constraints.ipadx = 0 ;
constraints.ipady = 0 ;
constraints.weightx = 1.0 ;
// The wide, scrollable panel - it can absorb the width, but must not
// absorb any more height THAN IT NEEDS!
constraints.fill = GridBagConstraints.HORIZONTAL ;
constraints.gridy = 0 ;
constraints.weighty = 0.0 ;
backPanel.add(new JScrollPane(scrollablePanel), constraints);
// The other panel - it can absorb the width AND the height.
constraints.fill = GridBagConstraints.BOTH ;
constraints.gridy = 1 ;
constraints.weighty = 1.0 ;
backPanel.add(fillerPanel, constraints);
}
}
If you compile and display it as it stands, you can see the JScrollPane is
quite rightly displaying the yellow small panels in full height.
If you now change NUM_SMALL_PANELS to 6, which goes beyond the width, and
then re-display it, you'll see the scroll pane collapses.
Any ideas as to why this happens? I've tried setting the viewport preferred
size but it doesn't make any difference. The best I can do is manually set
the scroll pane's size to the needed height + a scroll bar's preferred
height but that is neither elegant nor perfect - I want to know why it goes
wrong!
Any help on the why would be appreciated.
- 3
- Java regex imposture re: Perl regex compatibility// java has claimed to have added Perl style regular expressions ,
however
// writing a regular expression containing a variable is ugly in java.
// in Perl: $rec =~ s/$delimiter//g is easy to write and to read.
// in java: if delimiter may hold say "||" or "!" isntead of [a-z]
text,
// you have to quote it as below with preceding \\Q (not just \Q ) and
// trailing \\E. ugly and difficult to code!
rec = rec.replaceAll("\\Q" + delimiter + "\\E" ,"");
So even though java has perl style regex in principle, in practice,
in java they seem nearly unusable!
-A.C. Attlee
- 4
- How to open dialup connection in Java?Hi everyone,
Who know, how to open dialup connection from Java? (I found only one
way - to run another program (*.bat file), but it's not good idea). Any
another suggestions?
Haim.
- 5
- basics of ANThi, i have downloaded and started reading the ant tutorial.
i am confused becuase some of the concepts , the tutorial (jakarta )
is not making clear.
my objective is to compile and run a java program.
my questions are as follows
it is called in order to compile and run you need a "build.xml" file .
where is that file ?
QUESTION 1: is it within ant distribution OR i have to make a
build.xml file myself?
The tutorial does not say anything about it. it just starts straight
forward with a demo "build.xml" file.
where do i put this "build.xml" file ?
QUESTION 2 :
i have a java code here.
>md src
package oata;
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello World");
}
}
location of this code is "src/oata/HelloWorld.java"
Now tell, where do i put "build.xml" file ?
- 6
- Grid Bag question.I am trying to put together a panel which needs to consist of 20 lines,
each containing :
JLabel - 2 columns
JTextField - 1 colomn
JTextField - 1 column
JLabel - 2 Columns
The JText fields would be filled out from arrays, so it would be layed
out with the help of a 'for' loop.
I put together a test program (provided below) to try to emulate this,
but the layout manager only seems to want to give each entity (JLabel,
JTextField) the same amount of width each regardless of what I specify
in the GridWidth fields. Can this be done with specifying sizes for the
individual JTextfields or labels? Please advise - Thanks - Lou
import java.awt.*;
import javax.swing.*;
public class Test_GridBag2 {
public static void addComponentsToPane(JPanel pane) {
JButton button;
JLabel label;
JTextField jtf;
pane.setLayout(new GridBagLayout());
GridBagConstraints c = new GridBagConstraints();
c.fill = GridBagConstraints.HORIZONTAL;
//pane.setPreferredSize(new Dimension(300,200));
for (int i = 0; i<3;i++)
{
label = new JLabel("test");
c.gridx = 0;
c.gridwidth = 2; //2 columns wide
c.gridy = i; //third row
c.weightx = 1.0;
//c.anchor = GridBagConstraints.EAST; //bottom of space
pane.add(label, c);
jtf = new JTextField();
c.gridx = 2; //aligned with button 2
c.gridwidth = 1; //2 columns wide
c.gridy = i;
c.weightx = 1.0; //request any extra vertical space
//c.anchor = GridBagConstraints.EAST;//third row
pane.add(jtf, c);
jtf = new JTextField();
c.gridx = 3; //aligned with button 2
c.gridwidth = 1; //2 columns wide
c.gridy = i;
c.weightx = 1.0; //request any extra vertical space
//c.anchor = GridBagConstraints.EAST;//third row
pane.add(jtf, c);
label = new JLabel("");
c.gridx = 4; //aligned with button 2
c.gridwidth = 2; //2 columns wide
c.gridy = i;
//c.insets = new Insets(0,0,0,10);
c.weightx = 1.0; //request any extra vertical space
//c.anchor = GridBagConstraints.EAST;//third row
pane.add(label, c);
}
}
private static void createAndShowGUI() {
JFrame frame = new JFrame("GridBagLayoutDemo");
JFrame.setDefaultLookAndFeelDecorated(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel();
addComponentsToPane(panel);
frame.getContentPane().add( panel );
//Display the window.
frame.pack();
frame.setVisible(true);
}
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
}
});
}
}
- 7
- Layout problem driving me insane - panels, resizing, etcIchBin wrote:
> email***@***.com wrote:
>>> Get NetBeans. (Get the latest one, 5.5) You don't need any plugins,
>>> everything is there for you already. Go through the tutorial below,
>>> it'll take about 30 minutes. If your eyes don't pop out of your head
>>> like Rodger Rabbit, then you can safely ignore it.
>>>
>>> http://www.netbeans.org/kb/50/quickstart-gui.html
>>
>> 60 MB - yikes. I'll download it tonight and play with it a little
>> bit... and also try all the other suggestions. I'll try and post my
>> conclusions tomorrow.
>>
[snip]
Just looked at the code again. It's ok but wanted to slim it down one
more time..
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextArea;
import javax.swing.ListSelectionModel;
import javax.swing.SwingUtilities;
import com.jgoodies.forms.builder.DefaultFormBuilder;
import com.jgoodies.forms.debug.FormDebugPanel;
import com.jgoodies.forms.debug.FormDebugUtils;
import com.jgoodies.forms.factories.ButtonBarFactory;
import com.jgoodies.forms.layout.FormLayout;
public class LayoutProblem implements ActionListener
{
public static void main(String[] args)
{
SwingUtilities.invokeLater(new Runnable()
{
public void run()
{
new LayoutProblem();
}
});
}
public LayoutProblem()
{
jFrame.setDefaultCloseOperation(jFrame.EXIT_ON_CLOSE);
jFrame.add(buildMainPanel());
jFrame.setPreferredSize(new Dimension(475,600));
jFrame.pack();
jFrame.setVisible(true);
}
private JPanel buildMainPanel()
{
FormLayout layout = new FormLayout (
/* Columns */ "default:grow",
/* Rows */ "pref, 12dlu, fill:0:grow(0.50), 20dlu,
fill:0:grow(0.50)"
);
DefaultFormBuilder builder = DEBUGMODE
? new DefaultFormBuilder(layout,new FormDebugPanel())
: new DefaultFormBuilder(layout);
builder.setDefaultDialogBorder();
builder.nextLine(2);
builder.append(buildControl(jTable));
builder.append(buildButtonBar());
builder.append(buildControl(jTextArea));
if (DEBUGMODE)
{
FormDebugUtils.dumpAll(builder.getPanel());
}
return builder.getPanel();
}
private JComponent buildButtonBar()
{
JPanel jPanel = new JPanel();
jPanel = ButtonBarFactory.buildCenteredBar(
buildControl(BUTTON1),
buildControl(BUTTON2),
buildControl(BUTTON3),
buildControl(TEXT_EXIT));
jPanel.setBorder(BorderFactory.createRaisedBevelBorder());
return jPanel;
}
private JButton buildControl(String labelText)
{
jButton = new JButton(labelText);
jButton.addActionListener(this);
return jButton;
}
private JComponent buildControl(JTable jTable)
{
jTable = new JTable(dataValues, columnNames);
JScrollPane scrollPane = new JScrollPane(jTable);
jTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
return scrollPane;
}
private JComponent buildControl(JTextArea jTextArea)
{
jTextArea = new JTextArea(logAreaHdr);
JScrollPane scrollPane = new JScrollPane(jTextArea );
return scrollPane;
}
public void actionPerformed(ActionEvent e)
{
final String method = "jBotton_actionPerformed(ActionEvent " +
e + "): ";
if (DEBUGMODE)
{
System.out.println(DEBUGHEATER + method);
}
if (BUTTON1.equals(e.getActionCommand()))
{
}
else if (BUTTON2.equals(e.getActionCommand()))
{
}
else if (BUTTON3.equals(e.getActionCommand()))
{
}
else if (TEXT_EXIT.equals(e.getActionCommand()))
{
System.exit(0);
}
}
private static final String PROGRAM = (((new
Throwable()).getStackTrace())[0].getClassName())+".";
private static final String DEBUGHEATER = "( DEBUG ) " + PROGRAM;
private static final boolean DEBUGMODE = false;
private JFrame jFrame = new JFrame("JGoodies
Forms Layout Demo");
private JTable jTable;
private JTextArea jTextArea;
private JButton jButton;
private final String BUTTON1 = "Button 1";
private final String BUTTON2 = "Button 2";
private final String BUTTON3 = "Button 3";
private final String TEXT_EXIT = "EXIT";
private final String logAreaHdr =
"---------------------------\n---------------------------\n---------------------------\n";
private final String columnNames[] = {"Column 1", "Column
2", "Column 3"};
private String dataValues[][] = {
{"0aa", "bbb", "ccc"},
{"0dd", "eee", "fff"},
{"0gg", "hhh", "iii"},
{"1aa", "bbb", "ccc"},
{"1dd", "eee", "fff"},
{"1gg", "hhh", "iii"},
{"2aa", "bbb", "ccc"},
{"2dd", "eee", "fff"},
{"2gg", "hhh", "iii"},
{"3aa", "bbb", "ccc"},
{"3dd", "eee", "fff"},
{"3gg", "hhh", "iii"},
{"4aa", "bbb", "ccc"},
{"4dd", "eee", "fff"},
{"4gg", "hhh", "iii"},
{"5aa", "bbb", "ccc"},
{"5dd", "eee", "fff"},
{"5gg", "hhh", "iii"},
{"6aa", "bbb", "ccc"},
{"6dd", "eee", "fff"},
{"6gg", "hhh", "iii"},
{"7aa", "bbb", "ccc"},
{"7dd", "eee", "fff"},
{"7gg", "hhh", "iii"},
{"8aa", "bbb", "ccc"},
{"8dd", "eee", "fff"},
{"8gg", "hhh", "iii"},
{"9aa", "bbb", "ccc"},
{"9dd", "eee", "fff"},
{"9gg", "hhh", "iii"},
{"aaa", "bbb", "ccc"},
{"ddd", "eee", "fff"},
{"ggg", "hhh", "iii"},};
}
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
- 8
- checking for org.omg.CORBA.OBJECT_NOT_EXISTHi,
I'm writing a java CORBA client, using the Visibroker ORB. Sometimes
when I call methods on the remote object references I get the following
exception
org.omg.CORBA.OBJECT_NOT_EXIST: vmcid: OMG minor code: 0 completed:
No
Is there some way that I can check beforehand whether this exception
will be thrown, i.e. whether the remote object still exists? I thought
that I could do it like this:
if (myRef._non_existent()) {
// get a new myRef
}
myRef.doRemoteMethod();
But I've found that _non_existent() throws exceptions. Is there a
better way to check for the state that causes an OBJECT_NOT_EXIST
exception?
Regards,
Dan
- 9
- Java RPCHi All,
We have a set of application that communicates with embeded devices
that runs linux. Now we decide to use xml-rpc to send commands to the
devices with Apache's xmlrpc (or any other). We only need to generate,
and parse the structured xml string that contains the method name and
parameters. In other words we dont want to use a rpc server.
My question is how can I obtain the xml string of RPC command by only
suplying the method name and a vector that contains the parameters.
ps. In addition to primitive data types, parameters may contain
struct, array and etc.
Thanks in advance for your answer..
- 10
- 11
- Pooling of connectionsHi all,
I've read a few articles about how pooled connections are more
efficient because you don't need to repeatedly setup/teardown a
connection - you just acquire connection from the pool.
Exactly what steps in setting up/tearing down a connection are skipped
by acquiring an already existing connection? Perhaps the steps in
establishing/tearing down a connection would help in answering this
question?
Thanks
Taras
- 12
- Lomboz: problems running JBoss
> The result: Now I can start JBoss within Lomboz :)
> But calling my web results in an
> "Error running javac.exe compiler"
> Adding the variable "JAVA_HOME" did not help :(
Now I found out, that it works, when I put the bin dir
of javac.exe to the Windows system PATH before running
Eclipse. I don't like that. Isn't there another way?
Marcus
- 13
- java/62837: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.Synopsis: linux-sun-jdk14 executables hang with COMPAT_LINUX in the the kernel.
State-Changed-From-To: open->feedback
State-Changed-By: linimon
State-Changed-When: Fri Mar 31 08:51:09 UTC 2006
State-Changed-Why:
Submitter: is this still a problem?
Responsible-Changed-From-To: phantom->freebsd-java
Responsible-Changed-By: linimon
Responsible-Changed-When: Fri Mar 31 08:51:09 UTC 2006
Responsible-Changed-Why:
Reassign from phantom since he has been inactive for more than one year.
Hat: gnats-admin
http://www.freebsd.org/cgi/query-pr.cgi?pr=62837
- 14
- Process managementI am looking some packages for:
- monitoring a machine (total/free memory, CPU usage, keyboard/mouse
activity)
- managing processes (start/ssupend/resume/change priority) of processes.
I need this working at least on Windows/Linux ;-)
So far I was not able to find something doing this.
Thanks for your help.
Guillaume
- 15
- [OT]httpservletrequest parameters in netscapesookean wrote:
> Some more info...
>
> Here's some snippet for the list box:
> <select name="mylistbox" id="select2" onchange="setLang()">
>
> And here's a simplified version of my setLang()
> function setLang()
> {
> document.location.href="www.myserver.com?page=mypage&page2="+document.listbox[listbox.selectedIndex].value;
> }
Two points:
1) This question is off-topic for this (non-existent) group.
2) Does the version of Netscape you are using claim to be XHTML
compliant? Are you identifying your document as as XHTML document and
not simply an HTML document?
Ray
|
|
|