1. Create Dynamic Web Project as follows.
  2. http://www.homelesshounds.org.uk/?mikstyra=%D9%85%D8%A8%D8%A7%D8%B4%D8%B1-%D8%A7%D9%84%D8%B1%D8%A7%D8%AC%D8%AD%D9%8A-%D9%84%D9%84%D8%A7%D8%B3%D9%87%D9%85&c8f=d8 مباشر الراجحي للاسهم

  3. Enter project name as “ banksäljare forex lön WebApp” as follows and click on Next>>Next button.
  4. سعر الذهب بالسعوديه اليوم

    http://www.cottonwoodproperties.com/?rabik=%D8%AA%D8%AC%D8%A7%D8%B1-%D8%A7%D9%84%D9%81%D9%88%D8%B1%D9%83%D8%B3-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A%D9%8A%D9%86&fed=c8 تجار الفوركس السعوديين

  5. Click on Finish.Project will be created.
  6. Crating package,Select forex i farsta öppettider Src folder and then كيف اشتري اسهم في الامارات New and then برنامج تعليم شراء وبيع الاسهم Package.
  7. CreatingPackage

  8. Enter the package name called “ http://www.iranzamin.org/?hifoar=%D8%AB%D9%86%D8%A7%D8%A6%D9%8A-%D9%86%D8%B8%D8%A7%D9%85-%D8%A7%D9%84%D8%AE%D9%8A%D8%A7%D8%B1%D8%A7%D8%AA-%D8%A7%D8%B3%D8%AA%D8%B9%D8%B1%D8%A7%D8%B6-%D9%83%D8%B1%D8%A7%D9%83%D9%86&147=1f ثنائي نظام الخيارات استعراض كراكن com.java2learn” and then click on Finish.
  9. CreatePackage

  10. Create a class that implements Servlet interface.
  11. CompileTimeError

  12. To remove above compile time error ,Add the http://wiethaler.com/?sd=%D8%A7%D9%84%D9%85%D8%AA%D8%A7%D8%AC%D8%B1%D8%A9-%D8%A8%D8%B3%D8%A8%D8%A7%D8%A6%D9%83-%D8%A7%D9%84%D8%B0%D9%87%D8%A8&b0f=8f المتاجرة بسبائك الذهب servlet-api.jar to class path as follows.

    Select http://www.bteq.es/?ratet=%D8%AA%D8%AF%D8%A7%D9%88%D9%84%D8%A7%D8%AA-%D8%A7%D9%84%D8%B0%D9%87%D8%A8&93c=54 تداولات الذهب Configure Build Path.

  13. ConfigureBuildPath

  14. Click on Add External JAR’s, and Select http://craigpauldesign.co.uk/?izi=%D8%AA%D8%AD%D9%84%D9%8A%D9%84-%D8%A7%D8%B3%D9%87%D9%85-%D8%A8%D9%86%D9%83-%D8%A7%D9%84%D8%A8%D9%84%D8%A7%D8%AF&474=6f تحليل اسهم بنك البلاد servlet-api.jar ( شريط الاسعار الاسهم السعوديه download servlet-api) form your local system.
  15. ExternalJars

    jarfileAdded

  16. Complete the FirstServlet.java class.
  17. package com.java2learn;
    
    import java.io.IOException;
    import java.io.PrintWriter;
    import javax.servlet.Servlet;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    
    public class FirstServlet implements Servlet {
    
    	public void init(ServletConfig conf) throws ServletException {
    		System.out.println("init method");
    	}
    
    	public void service(ServletRequest req, ServletResponse resp)
    			throws ServletException, IOException {
    		System.out.println("service()");
    		PrintWriter out = resp.getWriter();
    		out.println("welcome to servlets");
    	}
    
    	public void destroy() {
    		System.out.println("destory");
    	}
    
    	public ServletConfig getServletConfig() {
    		return null;
    	}
    
    	public String getServletInfo() {
    		return "written by Java2Learn";
    	}
    
    }
    
  18. Create the web.xml as follows.
  19. <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    	id="WebApp_ID" version="2.5">
    	<display-name>WebApp</display-name>
    
    	<display-name>WebApp</display-name>
    	<servlet>
    		<servlet-name>FirstServlet</servlet-name>
    		<servlet-class>com.java2learn.FirstServlet</servlet-class>
    	</servlet>
    	<servlet-mapping>
    		<servlet-name>FirstServlet</servlet-name>
    		<url-pattern>/firstServlet</url-pattern>
    	</servlet-mapping>
    
    </web-app>
    
  20. Final project structure as follows
  21. FinalProjectStructure

  22. Create the war file.
  23. CreateWarFile

  24. In order to run a web application, the web application must be deployed in the container.
    We must copy the war file in اسهم السعوديه webapps directory of tomcat.
    http://www.grecorailings.com/?fartyx=%D8%AA%D8%AF%D8%A7%D9%88%D9%84-%D8%A7%D9%84%D8%B3%D8%B9%D9%88%D8%AF%D9%8A%D9%87-%D8%A7%D9%84%D9%8A%D9%88%D9%85&c0d=69 تداول السعوديه اليوم C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps
  25. Accessing servlet from web application .Open the browser and type the following URL in the address bar
  26. الاسهم السعودية اليوم الراجحي http://localhost:9091/WebApp/firstServlet

  27. Output of the servlet
  28. ServletOutput