Steve Simon Joseph Fernandez

Ranch Hand
+ Follow
since Jul 17, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Steve Simon Joseph Fernandez

I fogot to mention one more requirement - if a user accesses a URL with https directly (a bookmark, for eg) then that entire session should continue in https.

Thanks,
_steve.
Hi all,

I'm using JBoss 4.0.x for my website. I would like to know the recommended way of providing https access to my site. I would like to have something like a link called "secure version" on the sidebar of all pages, and when the user clicks on it, the rest of his session is using https by default. How can I do that?

Also, I have enabled CONFIDENTIAL transport for URLs beginning with 'secure' on my site. The problem is that once you go into https, the rest of the session continues in it (it doesn't come back to http even if you browse to a URL that doesn't contain 'secure') How can I fix this one?

Thanks,
_steve.
Actually, system-wide classpaths are evil. Do not use them. Instead, for every development enviroment or project that you have, write a batch (.bat) file or a shell script, put all your classpaths and other variables there, and execute it before you start working on that project. This way, you can work on multiple projects at one go and be absolutely sure that each project has the proper and local settings.

_steve.
19 years ago
NMI - Need more info

_steve.
19 years ago
Hi,

I don't think so; in your case, the order of the variables being printed to screen is different from the order in which they should be written to the file (if I've understood your question correctly)

_steve.
19 years ago
Hi,

The question itself is irrelevant - classes and methods inside them are decided based on design principles and your requirements - and no matter which class you put your method in, it will have the same "performance".

_steve.
19 years ago
Hi,

The serializable interface is a marker interface - implying that it doesn't contain any methods to implement. It tells the JVM that objects of this class are serializable by default - they can be converted to and from a byte stream by the default methods applied by the JVM. Serialization is done to 1) transmit objects via the network and 2)store objects in a persistent store. The opposite of serialization, i.e. deserialization, takes serialized objects and puts them back into the JVM heap.

_steve.
19 years ago
Thinking in Java by Bruce Eckel is a good book to start with. But, as is the case with everything else, nothing can take the place of regular practice

_steve.
19 years ago
It would have lots of uses. Atleast logically, making an interface final would prevent anyone from extending it, but it would remain implementable.

_steve.
19 years ago
When I try



I get "Illegal combination of modifiers: interface and final" I always thought you could declare an interface to be final....

_steve.
19 years ago
In the first variant, endpos is taken to be the end of the given string.

_steve.
19 years ago
We can be sure about Rectangle - it's not gonna disappear - but not about point

_steve.
19 years ago
Hi,

I think it is because Java expects all array sizes to be int. Thus, it forces size to be converted to an int, and warns you of the loss in precision.

_steve.
19 years ago
Hi,

I don't think your code proves anything about the existence of multiple objects of the static inner class, however:



Output: false

proves that the two objects obtained are different, as expected.

_steve.
19 years ago
Hi,

Could you make your requirements and question more clear? I couldn't understand it...

_steve.
19 years ago