How to run Java server page (JSP) in Linux Ubuntu

Posted by Unknown Rabu, 31 Agustus 2011 0 komentar
Let us see how to run a jsp in linux without IDE.create ,run configure tomcat.

         As a first step to run a java server page(.jsp) in Linux ,we need to have tomcat server installed in the system .To install Tomcat server  run the below command in the  terminal prompt : (alt + ctrl + t ).

Tomcat installation:

                           sudo apt-get install tomcat7  


If you have problem in installation go here


Now let us create a simple jsp file  
  Put the below code in the gedit, vi or any other text editor. 
 
           <html>
<body>
<%="Hello World!"%>
</body>
</html> 
   
  save the file as  hello.jsp    
 
        1. Type " sudo nautilus " in terminal (without Quotes) .
     
        2. Get into the location filesystem/var/lib/tomcat7/webapps.


   
        3.Inside webapps folder create a new folder and name it as jsp. And put the "hello.jsp"  file inside the jsp folder .


Note: All the .jsp files should be placed inside the tomcat6/webapps (as seen above).
 

TO Run Java server page (JSP) in Ubuntu 


        4.Open your browser type the following URL      

             http://localhost:8080/jsp/hello.jsp

8080 is a port number for apache tomcat server.
 




Related Posts:

    How to Run JSP in IDE
     JSP LOGIN Page                                                                  

     How to connect Java With Mysql 

     Connect PHP with Mysql 
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How to run Java server page (JSP) in Linux Ubuntu
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://androidjones7.blogspot.com/2011/08/how-to-run-java-server-page-jsp-in.html. Terima kasih sudah singgah membaca artikel ini.

0 komentar:

Posting Komentar

Trik SEO Terbaru support Online Shop Baju Wanita - Original design by Bamz | Copyright of android jones.