Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link

Jones Iraland

Ranch Hand
+ Follow
since Sep 15, 2007
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 Jones Iraland

Yes i meant Serv1.
I typed it incorrectly.

When I put the class file into defualt directory in tomcat it works.but when i do as said in the book it does not
Hi,
Sorry about.

I had to create a directory structure under this C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\

called / ch1 / WEB-INF /classes

I put my class file in WEB-INF /classes
while i put web.xml file in WEB-INF

This is the servlet java


My web.xml is






i type http:/localhost:8080/ch1/Ser1 in broweser ,which gives me errors


when i put my class file in

C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples\WEB-INF\classes and edit web.xml in


C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\servlets-examples\WEB-INF

and run http://localhost:8080/servlets-examples/servlet/Ser1 ,this is fine.





Hi,
I started studying for SCWCD

I brought the 2nd edition of Head First Servlets and JSP.

Alas..I typed the first program in page 30 sample servlet program called "Ch1Servlet"

I followed each step according to the book but it does not run as book says.

I have to create a new folder inside Tomcat 5.0 folder and save my work.
But if i put my program in servlet example folder which is insatalled with Tomcat and if i change that web.xml ,my program runs.


Have any of you got an idea what's happenning?


Thanks & Regards,

Jones
Hi,
I started studying for SCWCD

I brought the 2nd edition of Head First Servlets and JSP.

Alas..I typed the first program in page 30 sample servlet program called "Ch1Servlet"

I followed each step according to the book but it does not run as book says.

I have to create a new folder inside Tomcat 5.0 folder and save my work.
But if i put my program in servlet example folder which is insatalled with Tomcat and if i change that web.xml ,my program runs.


Have any of you got an idea what's happenning?


Thanks & Regards,

Jones

Thabks again guys
Thanks guys.
Just another question.
I have done SCJP and really didn't get any chnace of working with what ever the knowlege i gathered from it.
So i want to develop a java application on my own.
can you please advice me how i can start on it?

Thanks & regards,
Jones
Thanks Roel.
You set my mind at rest.

Regards,
Jones


Hi,
Please give me advice.
I asked from this forum beacuse you guys seems to have follow diffrent path than others.
Everyone seems to do SCWCD after SCJP.But not you guys.


I like to do another SUN exam after SCJP.
I have being tryin to see which will give me more knowlege and job opertunities.

SCJD or SCWCD or SCBCD

If I do SCJD ,please can you tell me the refrence material.
I do SCWCD ,i heard HFSJ 2nd edition is good is that correct?

Thanks in advance,
Jones
Thanks Bert for the reply.
Being out of java world for few months.
Now I am back
12 years ago
Hi,
I have the HF Servelets and JSP -Firstedition
To do SCWCD ,do i need to buy 2nd editon?

Cheers,
13 years ago
Hi Brad,
I got it installed thank you for the links

Cheers,
John

Sorry about that i was looking at De's message while I was typing.

I wanted to do same thing.Thank you De for bringing it up and Thank you Brad againg
13 years ago
Hi Balu,
I think i got it.Thanks for explanation.

I wrote this program to get it more clear in my head.

public class Poly extends PolyParent{
public void go(){
System.out.println("Inside Poly");
}
public static void main(String args[]){
PolyParent p=new Poly();

p.go();
}
}

class PolyParent{
public void go(){
System.out.println("Inside PolyParent");
}
}


If I commented PolyParent class go() method it will not compile.when I run this method it realy invokes Poly class go() method.

So Polymorphism happens at compile time actual method will be called depends on run time.

Have I got it correct?

Hi,
My question is how come if polymorphism invokes methods according to reference variable type and only do overriding ,but in overiding methods invocation happens according to object type and not reference type.

Cheers,
Johns