Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

How to run servlets in WebLogic.... Help me

Hi

i am new to this forum. i have one
servlets but i dont know that how to run this servlets in Weblogic can you
help me,
explain me step by step... this is my servlets program

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("<title>Hello World!</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Hello World!</h1>");
out.println("</body>");
out.println("</html>");
}
}

1. where is servlet.xml file
2. how can i make my application directory inside the Webapps directory? is
there any possiablity to create
my application folder?

i am waiting for your reply

Regards
Ravi
[1137 byte] By [cseravi] at [2007-11-11 8:14:14]
# 1 Re: How to run servlets in WebLogic.... Help me
Fristly,
Compile ur java file
and then copy the class file to
webapps
amtz << this is your own folder
WEB-INF << create this folder
classes << create this folder
HelloWorld.class << this is your class file

And then run
with this
http://localhost:8080/amtz/servlet/HelloWorld
myatwon at 2007-11-11 22:35:59 >