• Post Reply Bookmark Topic Watch Topic
  • New Topic

fresher  RSS feed

 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have downloaded jakarta 3.2.4 and j2ee,
the jakarta server is running ok,
How do i put the servlet.jar api in my j2sdk api,i am not able to execute a servlet in to a .class file.i get the following message:"pacakage java.servlet does not exist".
1) how do i or where do i put the servlet so that i can call it from i.explorer.
2)same goes for jsp.
3)what is the address to be put in Internet explorer like for example:
"http://localhost:8080/..."
Thanks.
[ July 24, 2002: Message edited by: parvin ]
 
Ritesh Gupta
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Have you tried compiling your Servlet outside the Server ? I noticed that the exception is that the package not found is java.servlet. Are you sure you are importing javax.servlet and not java.servlet ?
Ritesh
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ritesh,
that's one error removed now.
I am able to get the servlet.class file.
Where do i place the .class file in which folder,i.e the rest of my previous humble request.
Thank's again,
Parvin.
 
Bosun Bello
Ranch Hand
Posts: 1512
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can configure your web.xml file depending on how you want to access it. But for now you can put it under...
ServerDirectory\webapps\examples\WEB-INF\classes.
Access it as localhost:8080\examples\servlet\yourServletname
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"parvin"-
Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy.
You can change it here.
Thanks! and again welcome to the JavaRanch!
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all of u for the quick response,
next q)what is the meaning of
a)classpath.
b)path in context to above questions.
for example at present i am making my ".class"files in j2sdk1.4.0_01\bin folder,
but if have my seperate folder like
j2sdk1.4.0_01\bin\myfolder,i can not execute the javac command.
the message is 'javac' is not a recognized statement.
Obviously it has something to do with
classpath or path etc.
please do advice.

Thank's once again for the answer's.
parvin
 
Navi Singh
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, j2EELadies & j2EEGentlemen
please help me out on my quest.
Thank's,
Parvin
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!