betzi kuriakose

Greenhorn
+ Follow
since Jun 26, 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 betzi kuriakose

yes
Also I noticed something
If I log in as an administrator to the remote system, I am able to access the tomcat server's default page. however, Iam not able to access the servlet in the root directory of the tomcat server.
17 years ago
I cannot access the remote tomcat server's default page.
17 years ago
I cannot access the remote tomcat server's default page.
17 years ago
Dear Forum,

Iam new to Java web development. Iam in the process of developing a website. I have installed tomcat server on a PC which as Win XP as OS. The Tomcat server has been configured and can be accessed on this PC. I have written a servlet which runs fine locally on this PC. Now when I try to access this page from another PC connected to the previous PC by LAN, I encounter an error.
Locally, the URL used is http://localhost:8081/servlet_name
the servlet is placed in the tomcat installation's webapp/root/web-inf/classes directory.
remotely, the URL used is http://Ip_address_of_machine_tomcat_server:8081/servlet_name
The error displayed is "Network Access Message. There is a problem with the page you are trying to reach and it cannot be displayed."


Please advise me on how to go about with a solution to this.
Thank you
17 years ago
sorry for the typo error
hhtp to be read as http

On the first PC I have an oracle service running on 8080 hence I changed the tomcat to be on 8081. I have made this updation to the server.xml file
17 years ago
My Apologies for the incomplete post.

The error is true for a servlet also
Locally, the URL used is hhtp://localhost:8081/servlet_name
the servlet is placed in the tomcat installation's webapp/root/web-inf/classes directory.

remotely, the URL used is hhtp://Ip_address_of_remote_machine:8081/servlet_name

The error displayed is "Network Access Message. There is a problem with the page you are trying to reach and it cannot be displayed."

Hope this would suffice.
17 years ago
Dear Forum,

Iam new to Java web development. Iam in the process of developing a website. I have installed tomcat server on a PC which as Win XP as OS. The Tomcat server has been configured and can be accessed on this PC. I have written a JSP fragment which runs fine locally on this PC. Now when I try to access this page from another PC connected to the previous PC by LAN, I encounter an error.
Please advise me on how to go about with a solution to this.
Thank you
17 years ago
class check
{
public static void main(String h[])
{
byte x =3;
x=(byte)~x;
System.out.println(x);



}
}

The following code produces -4 .
I thought the answer was 0 as the result flows out of the range for byte primitive type.
Could anybody advise on this?

regards & thanks
betzi

the above code will
show the value of i as 0
and the array elements will be displayed as
3
0
0
0
0

Please explain why the output is so? I couldnt figure out...

regards
betzi
[ July 03, 2005: Message edited by: Barry Gaunt ]
thank you all very much!

regards
betzi
iam sorry
please read the snippet as follows:-
class rev
{
public static void main(String h[])
{
boolean flag = false;
if(flag = true)
System.out.print("True");
else
System.out.print("False");
}
}

the output is True .
please explain why it is so?
regards,
bmk
class rev
{
public static void main(String h[])
{
boolean flag = false;
if(flag = false)
System.out.print("True");
else
System.out.print("False");
}
}

the output is True. I had expected the result as a compile error

I don't understand why! please provide help on this.