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


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

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

  1. #1
    Join Date
    Mar 2006
    Posts
    1

    Thumbs up 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

  2. #2
    Join Date
    Oct 2006
    Posts
    1

    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

  1. Batch file to run a list of .sql files
    By Ben in forum Database
    Replies: 7
    Last Post: 11-19-2008, 08:48 AM
  2. run dos command from html page
    By steve hamilton in forum Web
    Replies: 3
    Last Post: 05-20-2002, 08:00 PM
  3. Re: Servlets (From Janet)
    By Debu in forum Java
    Replies: 0
    Last Post: 09-01-2000, 10:14 AM
  4. weblogic..servlets
    By sree in forum Java
    Replies: 0
    Last Post: 08-08-2000, 12:40 AM
  5. Replies: 3
    Last Post: 08-04-2000, 09: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
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center