Andreas Johansson

Ranch Hand
+ Follow
since Feb 05, 2001
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 Andreas Johansson

I don't agree. I think centigrade is a better scale for countries with normal(?) winters at least. If the temperature is negative then it will snow, when positive it will rain instead. Easy to know by only checking the thermometer. Ang good to know if the road will be icy or not.
No one usually wants to know the temperature of the body, as little as the boiling point of water.
21 years ago
But WHY do they prefer AM/PM?
21 years ago
Hi!
Thanks for your reply!
I have gazed through the examples but they are too tightly coupled to the database. I want it independent from the database structure.
I understand that DOM and SAX are the predominant techniques but which one should I use? What are their benefits and drawbacks?
The XML-files has to conform to LISAs (Localisation Industry Standards Assocation) TBX (TermBase eXchange) DTD-format and the server should be able to both read and write those files. The XML-file is only intended for importing of 3rd party data in this format and exporting the data from the server so that others can use it. The files will never be modified, they are merely data exchange.
Regards
Andreas
I'm developing a server that should be able to export it's data to XML as well as import it again (from XML).
I have a standard format DTD which the XML-file should comply to.
How should I write to the XML-file and read it in? (using JDK1.4) What tools/APIs should I use? (SAX? DOM? Other?)
/Andreas
Just wanted to thank for your replies! =)
We will change to Tomcat 4.0 which supports the Servlet 2.3 API. And in that they seem to have a new listener "HttpSessionListener" which have a sessionDestroyed() method! Very nice...
But thanks again!
/Andreas
22 years ago

Originally posted by Thomas Paul:
I think that is why Sweden has such a high suicide rate.


Threadkiller... =(
22 years ago
Hi!
I have a servlet that talks with my server to get the pages to show. For the server to know how to generate the pages from the database it stores one data object for every session.
But how do I know when the sessions end? (either when the user logs off, are inactive for 30min or closes the browser). I then want to remove the object on the server and also "log off" the user.
Can I get an event or is some method automatically called when an session ends?
I use servlets with tea and tomcat.
I hope you can help me soon!!
/Andreas
22 years ago
What about here i Sweden (and rest of Europe?) where we use 230V? (some years ago it were 220V but they changed it to 230V...) Yes, then we also have a lower freqency (I think it is 50Hz).
But why such a large differences and how does that affect the way elecrical stuff is built?

/Andreas
22 years ago

Originally posted by Nanhesru Ningyake:
What is the probability that this thread will turn into a discussion on what "real" English is?


Oh. But if I add "IMHO" somewhere in my message, then I hope that no one will be offended. :-)
/Andreas
22 years ago

Originally posted by Angela Poynton:
Correct Andreas ... and you spelt it the English way!! Extra points!!


Mhm. I, try to use British English when I can. Since it is the "real" or at least original English. =)
22 years ago
Colours?
/Andreas
22 years ago
Do it in your start up class (the one with the main method) before you initiate everyting else. Use both System.setOut() and System.setErr() to be sure to write everything to the text file.
/Andreas
22 years ago

Originally posted by Peter den Haan:
Your ...Impl class doesn't actually implement the interface...
- Peter


Ah, what a stupied misstake! Sorry to bother you... Friday afternoon, you know. =)
Thanks!
/Andreas
22 years ago

Originally posted by Peter den Haan:
[B]Remember, interface members are implicitly public, static and final. If you want to kit out your enumeration with some behaviour, you add a little implementation class:[This message has been edited by Peter den Haan (edited October 23, 2001).][/B]


Hi again!
I have tried to implement your suggestion as follows (quite like yours:

But how do I use it? I have tried some ways like:

But this won't compile and gives me:
"Server.java": Error #: 300 : method testStatus(com.termmate.StateStatus.StateStatusImpl) not found in class com.termmate.server.Server at line 127, column 5
I changed your "StateStatus ADDED = new..." to "StateStatusImpl ADDED = new..." since it wouldn't complie otherwise. I guess there are something wrong with that part...
Please help.
/Andreas
22 years ago

Originally posted by Michael Bruesch:
To totally NOT answer your question Andreas, I agree with what Cindy and "Effective Java" says, don't use interfaces for strictly constants. That's hacking/cheating, whatever you want to call it. On your subject Andreas, call it "TempClassName" for now, finish the [b]important stuff first, then worry about the piddly stuff later. There's always the Find and Replace All option to change it up at the end.
[/B]


Well, we have them right now, and they been around for a while. So I guess they will stay at least this version out. And therefore some suggestion for a more descriptive name is needed....
/Andreas
22 years ago