Hi
I using eclipse . I created a Dynamic Web project . I put the
servlets inside packages in the source folder and the html and JSPs in the web content folder. I am not able to add two servlets with the same name inside different packages . A prompt is thrown saying that a servlet with name already exists ?
Why is it so ? Shouldn't I be able to add two servlets with the same name as long as I put them in different packages ?
Also suppose I create a servlet "servA" iniside a package named "p1" . I have to specify the servA in the action attribute of some
jsp . How do i specify it ?
- as action ="p1.servA" (this did not work)
or
- simply as : action="servA" ( this worked)
Why is it so ? Isn't the first way correct ?
Are these issues related to eclipse ?
Thanks and Regards
Akash