Jiji Cherian

Greenhorn
+ Follow
since Apr 15, 2005
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 Jiji Cherian

Hi there,
could anyone tell me action classes belong to the controller part or model part..
18 years ago
Hi there,
Last day my friend asked me a question for which i was not able to answer.
The Question is.
What is the bit size of a reference variable in java?
Please revert back with the right answer.
Thank You.
I am also giving my vote to Headfirst EJB.....
18 years ago
Once again thanks Sreenath for responding..
Cold u tell me more about cache removal codes..
If possible please give me an example..
Thanks in advance..
18 years ago
Hi u can add the init param in the web.xml as follows

<init-param>
<param-name>name</param-name>
<param-value>val1</param-value>
<param-value>val2</param-value>
<param-value>val3</param-value>
</init-param>
this should be given inside the <servlet></servlet> tag..
18 years ago
Hi sreenath,
Thanks for ur response..
the file names are ApplicationResources_de.properties and ApplicationResources.properties..
Its not working only for a few pages and not always..
18 years ago
Hi there,
we are facing a serious problem.. but dont know what is the reason.
our application runs on jboss 4.0.2..
we are using struts..
we have configured application_resources to support two languages..
the struts locale_key is also set as follows.
for german
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("de","DE"));
for english
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("en","US"));

but sometimes even if english is set for somr pages german words are taken from application resources..
this is happening after we have configured virtual hosts for the server..
now we have two domain names for the same application..
and the conflict is showing for only one domain..
please help us to solve the problem
thanks in advance
18 years ago
Hi there,
we are facing a serious problem.. but dont know what is the reason.
our application runs on jboss 4.0.2..
we are using struts..
we have configured application_resources to support two languages..
the struts locale_key is also set as follows.
for german
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("de","DE"));
for english
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("en","US"));

but sometimes even if english is set for somr pages german words are taken from application resources..
this is happening after we have configured virtual hosts for the server..
now we have two domain names for the same application..
and the conflict is showing for only one domain..
please help us to solve the problem
thanks in advance
18 years ago
Hi there.
This is a question related to Math.abs().
Why Math.abs(Integer.MIN_VALUE)and Math.abs(Long.MIN_VALUE)returns -ve value.
Looking forward for your valuable answers??
Thanks in advance..
Dear Mr.Bolyuba,
You may be correct.
But in that book the authors meant two different objects of the same class.
And please note the term "properly overridden".
As Mr. Bates said if equals() is meaningfully overridden it can return true even if the objects are different.
Remember for a properly overridden equals() method the instanceof check will be there.
Pls look at the following question..

What can cause a thread to stop executing?
1) The program exits via a call to System.exit(0);
2) Another thread is given a higher priority
3) A call to the halt method of the Thread class?

Can anyone tell me which are the correct answers??
If another thread is given higher priority at runtime will stop the current thread from running? I s it a guaranteed behaviour?? Pls respond asap...
[ July 19, 2005: Message edited by: Barry Gaunt ]
String literals also work similarly..
String s1 = "123";
String s2 = "123";
s1 == s2 returns true..
Congrats Binoj..
Jiji, Kottayam.
18 years ago
i think sandy is correct..
do like that
18 years ago