-
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
-
to Run Servlet
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
Similar Threads
-
Replies: 7
Last Post: 11-19-2008, 07:48 AM
-
By steve hamilton in forum Web
Replies: 3
Last Post: 05-20-2002, 07:00 PM
-
Replies: 0
Last Post: 09-01-2000, 09:14 AM
-
Replies: 0
Last Post: 08-07-2000, 11:40 PM
-
Replies: 3
Last Post: 08-04-2000, 08:40 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks