DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 2 of 2
  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, 07:48 AM
  2. run dos command from html page
    By steve hamilton in forum Web
    Replies: 3
    Last Post: 05-20-2002, 07:00 PM
  3. Re: Servlets (From Janet)
    By Debu in forum Java
    Replies: 0
    Last Post: 09-01-2000, 09:14 AM
  4. weblogic..servlets
    By sree in forum Java
    Replies: 0
    Last Post: 08-07-2000, 11:40 PM
  5. Replies: 3
    Last Post: 08-04-2000, 08:40 AM

Bookmarks

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


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


Sponsored Links