Jyoti Sri

Greenhorn
+ Follow
since Mar 10, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Jyoti Sri

Thanks Ulf for this wonderful link!

This has almost solved my problem but I am still not able to figure out how do i know the version of jre installed ?
This script just let me to detect the existance of a java plugin , but if it exist what is the version how to find that out ?

Please share any information you have on this.

Thanks & Regards
Thanks Ulf for your response,

The above link shows nothing (blank) in the Installed plugin section when I open this page in IE.

I am able to see some plugins when i open same link in mozilla.

Probably you are using navigator.plugins() method.But i believe this method doesn't works for IE.

Please let me know if there is any workaround for this

Thanks & Regards
Hi All ,

I have a requirement in which I need to check if the client browser has met a specific set of requirements like brower name (IE or Netscape etc.) , browser version etc.

I also need to check is java is enabled for that browse which I am doing using navigator.javaEnabled() method.

I want to check if the Jre version browser is using is greater than 1.4
Can any body suggest me some javascript code find out jre version a browser is using.

Thanks in advance

Regards

Jyoti
I can try doing that , but i had a doubt that because both of them are different web applications will they still be having common session or whatever j_security_check uses to store the logincontext ?

anywayz i'll try to do that & see if it works
17 years ago
I think what you want to achieve is that the array should always contain numbers in increasing order eg {1,2,4,7,12} and thing like
{1,3,4,5,2} or {2,5,8,3} should return false.

So if i dry run my code for these inputs i think it gives correct results , can you give me a case where it doesn't works ?



no it does not work in all conditions.

rule is that we have to make sure {1,2,3} returns true but not {1,3,2}


public boolean scoresIncreasing(int[] scores) {
int a= scores.length;
boolean b = true;
for (int i=0; i<a;i++) { int c =scores[i];
int d= scores[i+1];
if (a>=2 && c>d)
{ b= false;
// If at any point in the array previous value is > then
// no need to check further just break for loop & return false
break;
}
}
return b;
}



[ March 11, 2008: Message edited by: Jyoti S ]
17 years ago
For passing command line parameters , after compiling you class when you run it just say

java <classname> argument1 argument2 argument3 ...

in your case

java argss world
I am passing "world" as parameter
17 years ago
How about this



[ March 10, 2008: Message edited by: Jyoti S ]

[ March 10, 2008: Message edited by: Jyoti S ]
[ March 11, 2008: Message edited by: Jyoti S ]
17 years ago
I think there is a problem in your for loop




it should be, for (int i=0; i<a;i++)

consider your array is {1,3,4}

So, According to your code this is happening :

1st iteration of for loop
i = 0
c = 0th element of the array i.e. 1
d= 1st element of the array i.e. 3

2nd iteration of for loop
i = 1
c = 1st element of the array i.e. 3
d= 2nd element of the array i.e. 4

After this i=2 which still satisfies your for loop condition , so one more iteration

3rd iteration of for loop
i = 2
c = 2nd element of the array i.e. 4
d= This tries to access 3rd element of the array , which is not there !!

thats why you are getting ArrayIndexOutofBound exception.

Hope this helps !!

Regards
17 years ago
Thanks for your response Nitesh.

My problem is this 3rd party webapp uses j_security_check for authentication, so whenever a user tries to access this appln he will be redirected to login page first & then that loginform has "j_security_check" in the post method.

So basically i want to skip this step , i tried avoiding form based authentication by removing "<login-config>" in web.xml but after this it throws an error saying this is a secure resource.

Moreover I think it is not a good idea to modify the war file supplied by 3rd party to achieve any solution because tommorow if they release another version i have to change the war again.

I hope you got what i m trying to achieve.

Please give your suggestions/solutions.

Thanks
17 years ago
Hi all,

We have a webapps(3rd party) which uses j_security_check as the authentication mechanisms , i want to integrate & use it with my current web application such that user just have to login in my main application & it should automatically login user for the other application.

I have heard about single sign on ,do i need to use single sign on to achieve this ?If yes , then which mechanism to use (JAAS ?) & how to implement it !

My main application has to run on both JBoss as well as weblogic.

Can some one please suggest any way of acheiving this ?

Thanks in advance

Regards
17 years ago
Hi all,

We have a webapps(3rd party) which uses j_security_check as the authentication mechanisms , i want to integrate & use it with my current web application such that user just have to login in my main application & it should automatically login user for the other application.

I have heard about single sign on ,do i need to use single sign on to achieve this ?If yes , then which mechanism to use (JAAS ?) & how to implement it !

My main application has to run on both JBoss as well as weblogic.

Can some one please suggest any way of acheiving this ?

Thanks in advance

Regards
17 years ago
Hi all,

We have a webapps(3rd party) which uses j_security_check as the authentication mechanisms , i want to integrate & use it with my current web application such that user just have to login in my main application & it should automatically login user for the other application.

I have heard about single sign on ,do i need to use single sign on to achieve this ?If yes , then which mechanism to use (JAAS ?) & how to implement it !

Can some one please suggest any way of acheiving this ?

Thanks in advance

Regards
17 years ago