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

how to run one jsp file

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 Pages:
sun
Sun Java
Sun Java  Hi, What is Sun Java? How to get the Sun Java for development? Is Java still open source? Thanks
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
provided by sun Microsystems. Java Development Kit or JDK comes in various version and can be downloaded free from the sun Microsystems. JVM compiler, debugger
Java & JEE books Page11
Java & JEE books Page11       Herong's Tutorial Notes on JVM Java HotSpot VM is developed by Sun Microsystems. It has key feature called adaptive compiler that application code
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
What is Java, it?s history?
language developed by the Sun Microsystems. Though it is associated with the World... to be recompiled for each different CPUs. A team of Sun Microsystems including
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
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
Introduction to Apache Myfaces and Tomahawk
implementations for JSF specification. Sun, Apache, Oracle implementations are most popular... are fully compatible with Sun JSF 1.1 reference implementaion or any implementation
NetBeans IDE
NetBeans IDE         The NetBeans IDE, product of Sun Microsystems, is a free, open-source integrated development environment written entirely in Java for software developers
Java Developers Desk- Annotations
Java Developers Desk- Annotations           An Introduction to Annotations Sun Microsystem added the features like annotation to make the development easier
Java Releases
Java Releases       Java is developed by Sun Microsystems in 1996. Now the Java is powerful tools for the development of robust and scalable enterprise applications.   
Java News and Releases
Java News and Releases           Sun Microsystems to buy MySQL AB for $1B Sun...;  Sun releases Java SE 6 Update 4 Sun has released Java SE 6 Update 4
Open Source JMS
Open Source JMS Open Source JMS OpenJMS is an open source implementation of Sun Microsystems's Java Message Service API 1.0.2 Specification. Features include: * Point-to-Point and publish-subscribe messaging models * Guaranteed
Java Development Kit
Java Development Kit       Java Development Kit (JDK) is a product developed by Sun MicroSystem aimed at Java developers. Since the Java is introduced, it has been by far the most
History of Java
Java: History of Java Two failures Java was designed by Sun Microsystems in the early 1990s to solve the problem of connecting many household machines... Web became popular in 1994, Sun realized that Java was the perfect programming
What is Java?
What is Java?       Java is a high-level object-oriented programming language developed by the Sun... different CPUs. A team of Sun Microsystems including Patrick Naughton, Mike
What is JSP?
The JSP  Java Server Pages Technology: Java Server Pages is a technology from Sun that enables the Java programmers to generate HTML, XML or other types of documents to server the web client. The JSP technology allows
October 2007 Issue of Java Jazz up magazine
October 2007 Issue of Java Jazz up magazine           Java News Sun adds features to the Java platform?s existing security by announcing two new Java SE
Understanding the JDBC Architecture
Understanding the JDBC Architecture       JDBC is an API specification developed by Sun Microsystems that defines a uniform interface for accessing various relational
JSP Tutorials
or JSP for short is Sun's solution for developing dynamic web sites. JSP... Server Pages is a technology introduced by Sun Microsystems Inc. to develop
Java hello world
Java hello world       Java is a high-level object-oriented programming language developed by the Sun Microsystems and is available in different form like JSP, Java Applets, J2EE
Introduction to POJO (Plain Old Java Object) Programming Model
Introduction to POJO (Plain Old Java Object) Programming Model       One of the new features of added by Sun Microsystems in EJB 3.0 is POJO (Plain Old Java Object
Java SE 6
Java SE 6       The latest news for the java programmers that the Sun MicroSystems has released the Java SE 6 on Monday December 11. So go

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.