J2EE option missing in Eclipse environment for Servlet.

2007-01-03 Thread athula bogoda
Hi all,

I install eclipse 3.2 with Tomcat 5.0 to run servlets
under J2EE.
I follow the steps as displayed in the demo by
following link.
http://mirror.yoxos-eclipse-distribution.de/eclipse.org/technology/phoenix/demos/install-wtp/install-wtp.html

But in Open Perspective J2EE option is not
available. Also Dinamic web Project option also not
available.
What's the wrong on it.

Please help me.
Thanks,
Athula.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Help Me on Servlet in Tomcat 5.0

2006-12-28 Thread athula bogoda
Hi All,

Can any body give me guidence to run my first servlet
on Tomcat 5.0. 
This is my file...

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {

public void doGet(HttpServletRequest request,
HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(titleHello World!/title);
out.println(/head);
out.println(body);
out.println(h1Hello World!/h1);
out.println(/body);
out.println(/html);

}
}
 

I compiled it(windows environment). But confused where
should i should put it and run on my local machine
typing http://localhost/

I go through several tutorials.But could not able to
success.If any one can help me it would be agreat
help.

Thanks.
Athula.

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Servlet Plugins for Eclipse

2006-12-28 Thread athula bogoda
Hi All,
Can any one tell how can I download or add plugins for
Eclipse to develop Servlet applications.

Thanks,
Athula

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can I display servlet in browser.....

2006-12-20 Thread athula bogoda
can any one tell me how should I display servlet
file(HelloWorld.java) in IE browser.

I already compile the file and put both .java and
.class file it to the 
C:\Program Files\Apache Software Foundation\Tomcat
5.0\webapps\ROOT\bo
(bo is the file I put my develped files)

after I browse the file using
http://localhost:8080/bo/

It show all files in it.

But when i click on the HelloWorld.class file it
disply as a pop up dialog box to Open.

How can I dispaly this servlet in the browser.

Thanks.
Athula

Send instant messages to your online friends http://uk.messenger.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to Run Servlet

2006-12-19 Thread athula bogoda
I installed it and try to compile servlet file. But it gives an errorCannot 
find symbols.

Thanks,


- Original Message 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, December 19, 2006 9:04:04 AM
Subject: Re: How to Run Servlet

athula bogoda wrote:
 Hi,
 I am new to servlet.
 
 Can any one tell me how to run servlet file in Tomcat 5.0.

First off, you will be better off with 5.5.x rather than 5.0.x

Then you could try following the following example:
http://tomcat.apache.org/tomcat-5.5-doc/appdev/index.html

There are also many tutorials available on the web.  A few pointers to
get you started:
http://java.sun.com/products/servlet/docs.html
http://www.google.com/search?hl=enq=servlet+tutorialbtnG=Google+Search

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Send instant messages to your online friends http://uk.messenger.yahoo.com 

Re: How to Run Servlet

2006-12-19 Thread athula bogoda
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class HelloWorld extends HttpServlet {

public void doGet(HttpServletRequest request, HttpServletResponse response)
throws IOException, ServletException
{
response.setContentType(text/html);
PrintWriter out = response.getWriter();
out.println(html);
out.println(head);
out.println(titleHello World!/title);
out.println(/head);
out.println(body);
out.println(h1Hello World!/h1);
out.println(/body);
out.println(/html);

}
}

This is the file i tried to execute.

I also set the class path for jsp-api.jar and servlet.jar files.
But it did not work.

Thanks.

=




- Original Message 
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, December 19, 2006 5:39:07 PM
Subject: Re: How to Run Servlet

athula bogoda wrote:
 I installed it and try to compile servlet file. But it gives an errorCannot 
 find symbols.
 
 Thanks,

A little more information would help. What did you try and compile and
how did you try and compile it?

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







Send instant messages to your online friends http://uk.messenger.yahoo.com 

How to Run Servlet

2006-12-18 Thread athula bogoda
Hi,
I am new to servlet.

Can any one tell me how to run servlet file in Tomcat 5.0.

When I run my hello world file it views the souce file.

But examples are given in Tromcat local server is working fine.

Help me.




Send instant messages to your online friends http://uk.messenger.yahoo.com