SuneelKumar Machha
sun
2 Answer(s)      4 years and 4 months ago
Posted in : Java Beginners

how to run one jsp file

Advertisement
View Answers

January 5, 2011 at 5:23 PM


Hi Friend,

Firstly, you need to download and install apache tomcat 6.0.16 and put the extracted folder in c drive. Then

1)Go to the Control Panel>>System>>Environment Variable and set the variable CATALINA_HOME and put the path of your apache tomcat as a value like: C:\apache-tomcat-6.0.16 .

2)Like that create another variable classpath and put the path of apache-tomcat lib as a value like C:\apache-tomcat-5.5\lib.*;

3)Also put the servlet api.jar file inside the lib folder.

4)Now create a jsp file:'hello.jsp'

<%@page language="java"%>
<%String st="Hello World";
%>
Message is <%=st%>

5)Put this jsp file inside the apache-tomcat>>webapps>>web application folder>>

6)You have to give appropriate name to web application folder like examples and put jsp file into it.

7)Then start the tomcat server by clicking startup.bat from the bin folder of your tomcat.

8)Open your browser and type the following url:

http://localhost:8080/examples/hello.jsp and press enter.

9)You jsp program will then display the output on the browser.

For more information, visit the following link:

[JSP Tutorials][1]

Thanks



January 5, 2011 at 5:25 PM


For more information, visit the following link:

JSP Tutorials

Thanks










Related Tutorials/Questions & Answers:
Sun Java
Sun Java  Hi, What is Sun Java? How to get the Sun Java for development? Is Java still open source? Thanks
sun
Advertisements
Sun Certification - Java Magazine
Sun Certification  How can crack sun certification in SCJP
Sun Microsystems Java
Sun Microsystems Java  Hi, What is Sun Microsystems Java? Thanks   Hi, Read it at http://www.roseindia.net/java Thanks
Sun App Server - JSP-Servlet
Sun App Server  Dear Roseindia Team, I am Ragavendran.R.. I need to be clarified with a thing regarding J2EE1.4 Sun App server.. As everyone is aware, the web application can be executed using say http://localhost
date_sun_info
  date_sun_info() Function of PHP date_sun_info function returns... on success or False on failure.  Description on PHP date_sun_info() Function array date_sun_info ( int $time , float $latitude , float $longitude
How to design a weeping sun
How to design a weeping sun Have you ever seen weeping sun, no! Get ready to make this effect in the photoshop by using... rays of the sun Gaussian Blur: Go to Filter Menu > Blur > Gaussian Blur
Sun Java Wireless Toolkit
Sun Java Wireless Toolkit       Java Platform, Micro Edition The Sun Java Wireless Toolkit... and successful wireless applications to market quickly. Sun Microsystems
Installing Sun JDK on Linux
Installing Sun JDK on Linux (Fedora Core 3)                          
Be a Sun Certified Java Programmer
Be a Sun Certified Java Programmer in Roseindia Technologies     The course of Sun Certified Java Programmer... the guarantee of your success. About SCJP Certificate Examination: Sun
Open Sourcing Java by Sun Microsystems
Open Sourcing Java by Sun Microsystems       Sun Microsystems brings a revolution in computer programming field from the year of its release back in the 90s. Sun developed Java
Sun's JDBC-ODBC driver does not implement the getPrimaryKeys() method for the DatabaseMetaData Objects.
Sun's JDBC-ODBC driver does not implement the getPrimaryKeys() method for the DatabaseMetaData Objects.  Is there a way to find the primary key(s) for an Access Database table? Sun's JDBC-ODBC driver does not implement
Tutorial - Sun Java System Application Server Platform Edition
Sun Java System Application Server Platform Edition       In this tutorial we will be using Sun Java... provided by it. The Sun Java System Application Server Platform Edition 9
Installing Sun Java System Application Server Platform Edition
Installing Sun Java System Application Server Platform Edition... will learn how to install Sun Java System Application Server Platform Edition... is "C:\Sun\AppServer" leave the default directory and click on the next
Sun Certified Java Professional (SCJP)
Sun Microsystem offers SCJP certification exams in two versions SCJP 5 CX-310-055 and SCJP 6 CX-310-065 certification exams in which SCJP 6 CX-310-065 certification examination is the latest version. For qualifying SCJP 5 CX-310-055
Appendix A. First Appendix
Appendix A. First AppendixPrev Part II. Appendixes Next     Appendix A. First AppendixFirst Section The Sun Certified Business Component Developer (SCBCD
Download JDK
development program provided by sun Microsystems. Java Development Kit or JDK comes in various version and can be downloaded free from the sun Microsystems. JVM
W - Java Terms
W - Java Terms       Java Web Start Sun Microsystems has developed....     Sun Java Wireless Toolkit The Sun Java Wireless
About Java Programming Language
developed by Sun Microsystems. Java is a very powerful general-purpose programming... a language named Oak. Language Oak was developed in the early the nineties at Sun... applications and even mobile and embedded devices applications. Sun Microsystems
Java JVM
Java JVM       The JVM is a crucial component of the Java Platform introduced by Sun Micro Systems. It  is a set of computer data structures & programs which use a virtual
Java Certification
; Sun's certification programs in Java technology are well recognized... to another.   The main motive of Sun's certification program is to learn the process since it provides validation of skill sets for specific job roles. Sun
Java DB
Java DB       Java DB is an open source Apache Derby database supported by Sun. Java DB is completely written in the Java programming language having the functionality write once run
Java Web Start
Java Web Start       Sun Microsystems has developed a framework named Java Web Start. This framework allows us to directly start application software for the Java
Introduction to Java
Java is an open source object oriented programming language that was developed by Sun Microsystems. A team of Sun Microsystems including Patrick Naughton, Mike Sheridan under James Goslings decided to develop a programming language
Learn Java - Learn Java Quickly
developed by Sun Microsystems. This is freely available to public for all purposes... technology can be sold without paying or consulting to the Sun Microsystems. Java
Java Around The Globe
;     Sun Advances Security for the Java SE Platform Sun...?. Sun will begin delivering synchronized security releases of current and legacy versions of Java.       Microsoft and Sun Expand
Deploying Application
with  Sun Java System Application Server Platform Edition 9. We will also learn the different methods of deploying applications on the Sun Java System... for deploying Application on the Sun Java System Application Server Platform Edition 9
J2ME Tutorial
was designed by Sun Microsystems and is a replacement for a similar.../vnd.sun.j2me.app-descriptor, which developed by the Sun Microsystems, Inc.  
Instructor Led Training (ILT) on JavaFX at RoseIndia Technologies
an Online Training on the latest Java Technology JavaFX announced by Sun Microsystems... of Java based technology at Sun Microsystems, the founder of Java. It is the outcome of Sun JavaF3 Project designed by Chris Oliver, the father of Java
New Releases
New Releases           Sun?s released the Java Wireless Toolkit 2.5.2 Sun has released the Java Wireless Toolkit 2.5.2. The Toolkit includes build tools, utilities
Java Virtual Machine Free Download
Machine software is freely downloadable from the sun website. To run your program we... sun download site. You don't have to register to get the latest version