Home Answers Viewqa JSP-Servlet Unable to execute JSP page

 
 


Basumitra Mitra
Unable to execute JSP page
1 Answer(s)      2 years and 3 months ago
Posted in : JSP-Servlet

I have written one jsp file. It contains html tags and jsp directives. I have saved the file with the extension .jsp. The tomcat server is already running onto my machine. I have saved the jsp file within demo-examples which is again within webapps folder of apache-tomcat-6.0.14 folder.

But I could not execute the JSP page. Please help me.

View Answers

February 14, 2011 at 12:17 PM


How to run JSP page:

Follow these steps:

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

2)Like that create another variable classpath and put the path of apache-tomcat lib as a value like C:\apache-tomcat-6.0.14\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.









Related Pages:
Unable to execute JSP page
Unable to execute JSP page  I have written one jsp file. It contains html tags and jsp directives. I have saved the file with the extension .jsp... folder. But I could not execute the JSP page. Please help me
unable to execute the examples
unable to execute the examples  unable to execute the examples given for struts,ejb,or spring tutorials.Please help I am a beginner
Unable to run the jsp page - JSP-Servlet
Unable to run the jsp page  Expert:Naga Hi, I need solution... page is shipping and billing details and the next page is payment details. What... on the textbox of the payment.jsp page and also calculate the tax payment and shipping
Struts2...problem in JSP..unable to get the values for menuTitle!!!
Struts2...problem in JSP..unable to get the values for menuTitle!!!  ... Jsp is displaying the menuId from database but not the menuTitle...where as its... dao=new DAO(); public String execute() { menulistlist=dao.fetch
Unable to compile class for JSP - WebSevices
Unable to compile class for JSP  org.apache.jasper.JasperException: Unable to compile class for JSP When I am trying to access a java file kept under src folder under a package from a jsp page placed under web directory, I am
Unable to understand Struts - Struts
Unable to understand Struts  I am studying in GNIIT from NIIT. Here... but I did'nt get successfull msg. it doesnat forwads on the success page... */ @Override public ActionForward execute(ActionMapping mapping
Unable to call .jrxml file from jsp
import="java.text.*" %> JSP Page...; ***And it output**** Here output display in browser. JSP Page...Unable to call .jrxml file from jsp  Hi, I am doing web application
how to execute the below servlet with html page
how to execute the below servlet with html page  //vallidate user n pwd by validservlet package active; import javax.servlet.*; import...))){ response.sendRedirect("Admin"); } else{ response.sendRedirect("/examples/jsp
unable to see the output of applet. - Applet
unable to see the output of applet.  Sir, I was going through.../FirstApplet.shtml of your website. this page has got the "link" which says Try online... copy that html part in the same directory and execute your first applet
Unable to run jsp files on internet explorer - JSP-Servlet
Unable to run jsp files on internet explorer  Hi, I am Akhilesh Shrivastav. I am new to jsp and a new member of this site. My problem is i wrote...-tomcat-6.0.16/webapps/jsp i am sending simple program of jsp. Hello World JSP Page
Unable to bind to a hashmap from jsp using spring tags - Spring
Unable to bind to a hashmap from jsp using spring tags  Hi, I am unable to bind a hashmap from my jsp page. Here is what i want to do: I have an arraylist in a jsp page. As i loop through the array list, for each element i
unable to get datas from oracle database
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred...unable to get datas from oracle database  Dear Sir, I am again... this error when i run the jsp file in tomcat, I post my code below.. kindly let me
jsp page connectivity with oracle - SQL
jsp page connectivity with oracle  I am unable to database connectivity jsp with oracle. Please send the code for solving problem. thanks ...)write query and execute the query: ResultSet rs = st.executeQuery("SELECT
unable to connect to server - JSP-Servlet
unable to connect to server  thank you for the program code for inserting and reteriving the image but i am unable to deploy these two programs..., create a web application folder inside the webapps folder and put the jsp file
how to execute jsp and servlets with eclipse
how to execute jsp and servlets with eclipse  hi kindly tell me how to execute jsp or servlets with the help of eclipse with some small program
Unable to connect servet, jsp to oracle 10g database.. Unable to retrieve data..
Unable to connect servet, jsp to oracle 10g database.. Unable to retrieve data..  I have a class file AbstractDataAccessObject with the below code.... If I use it also, unable to connect to backend oracle database. Let me
how to execute this code - JSP-Servlet
how to execute this code  hi guys can any help me in executing this bank application http://www.roseindia.net/jsp/bank.shtml, i need to use any database plz tell me step-to-step procedure for executing this,i need to create
how to execute jsp and servlets with eclipse
how to execute jsp and servlets with eclipse  hi kindly tell me how to execute jsp or servlets with the help of eclipse with some small program... http://www.roseindia.net/jsp/crud-application.shtml This will help you in how
java script unable to connect to oracle database and insert data
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred...: org.apache.jasper.JasperException: Unable to load class for JSP...java script unable to connect to oracle database and insert data  
Create dynamic page through JSP
Create dynamic page through JSP       This is detailed jsp code that shows...;ConnectJspToMysql.jsp" in the directory Tomcat-6.0.16/webapps/user/ and run this jsp page
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB connection - JSP-Servlet
javax. servlet.Servlet Exception: Initialization failed, Unable to get DB... Company Ltd. Login Register Registration Page... ServletException("Initialization failed, Unable to get DB connection
unable to compile class file - JSP-Servlet
unable to compile class file  I wrote database connection in jsp file. I have form in html. In html form i put drop down list box in that form...("/jsp/Combobox.jsp"); dispatcher.forward(request, response
which version of eclipse is used to execute Servlet or JSP
which version of eclipse is used to execute Servlet or JSP  Hi Can any body tell me which version of eclipse i have to use inorder to execute Servlet or JSP. previosuly i installed eclipse 3.1 .i am having j2se 5.0 with which i
HQL Query in execute method of Struts2
HQL Query in execute method of Struts2  I am making login page in struts2 and using hibernate . Now I wants to pull user name and password from.... Is it possible to write it at execute method of struts2
Redirect to same jsp page on successful login
Redirect to same jsp page on successful login  Hi, I have an application where on successful login, the redirect should happen to same page... from the database. I am unable to create the session for the same login page
login page
login page  hi i'm trying to create login page using jsp. i get.../html" pageEncoding="UTF-8"%> JSP Page... jboss and netbeans. please help me get rid of 404 with the steps to execute
how to pass form values from javascript of html page to jsp page
how to pass form values from javascript of html page to jsp page   This is my sample html page which contains inline javascript which calculates... showlocation funtion to submitform.jsp page and display latitude value in jsp page
How to run a simple jsp page in tomcat???
How to run a simple jsp page in tomcat???  i am trying to run a simple jsp page in tomcat,i am having web.xml also in WEB-INF folder. but it is giving me this error below....please help me to solve it. my jsp page code is given
jsp
jsp  Hi How can we display sqlException in a jsp page? How can we mantain session in jsp? Thanks Kalins Naik   JSP SQL Exception <... with Session   JSP SQL Exception <%@ page import="java.sql.*" %> <
jsp page
jsp page  <%@page contentType="text/html" pageEncoding="UTF-8"%>...;%@page import="java.sql.Statement"%> <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.Connection"%> <%@page import
JSP
JSP  1)Suppose we edited something in JSP page, do we need to refresh the page? 2)What is pagination? And do we achieve it give me logic? 3)Suppose... is come 4)How many time init() method execute and what if , Brower is close
jsp page
jsp page  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
JSP Tutorials - Page 3
JSP Tutorials - Page 3
Display Data from Database in JSP
. This is first jsp page that has a link 'show data from table', user can show... jsp page. welcome_to_database_query.jsp <!DOCTYPE HTML PUBLIC "..._query.jsp. Click on the link given in the first jsp page,that calls this jsp
How ot get a web page title and meta tags in java(jsp/ servlet) - JSP-Servlet
How ot get a web page title and meta tags in java(jsp/ servlet)  Hi i want to get a web page title and meta tags using servlet of java but i am unable to do that and my target will be to read only the title and meta tags
jsp page - JSP-Servlet
jsp page  what are elemets and template data in jsp page??  Hi Friend, Template Data is a parameterized content that allows the JSP document to generate a response stream of characters. JSP Elements provides
unable to validate username and password from ms acess database
unable to validate username and password from ms acess database  //this code is not working! please help me to find error. thanks. <%@ page import="java.sql.*" %> <% Connection con=null; String user
unable to validate username and password from ms acess database
unable to validate username and password from ms acess database  //this code is not working! please help me to find error. thanks. <%@ page import="java.sql.*" %> <% Connection con=null; String user
unable to validate username and password from ms acess database
unable to validate username and password from ms acess database  this code is not working! please help me to find error. thanks. <%@ page import="java.sql.*" %> <% Connection con=null; String user
unable to validate username and password from ms acess database
unable to validate username and password from ms acess database  this code is not working! please help me to find error. thanks. <%@ page import="java.sql.*" %> <% Connection con=null; String user
jsp
jsp   sir i am trying to connect the jsp with oracle connectivity...: <%@ page import="java.sql.*"%> <%@ page import oracle.sql.*"%> <%@ page import="oracle.jdbc.driver.*"%> 2)Load the oracle driver
The Page Directive in JSP Page
The Page Directive in JSP Page     ... of the JSP page which works for the entire JSP page. These directives apply different... and explanation one-by-one. This is the directive of the JSP page which defines
unable to retrive the data from mysql using servlet using jdbc driver
unable to retrive the data from mysql using servlet using jdbc driver ... html page on verification. public class LoginServlet extends HttpServlet implements...(request,response); } } .i am unable to redirect..here is the code..pls
jsp page submitting
jsp page submitting  whenever i am submitting the jsp page it downloads some unknown file on tomcat server
write data to a pdf file when i run jsp page
to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page...write data to a pdf file when i run jsp page  Hi, <%@page import
write data to a pdf file when i run jsp page
to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page...write data to a pdf file when i run jsp page  Hi, <%@page import
write data to a pdf file when i run jsp page
to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page...write data to a pdf file when i run jsp page  Hi, <%@page import
write data to a pdf file when i run jsp page
to the libraries.the pdf file are not opened when i execute the program.please send the code to open the pdf file when i execute the jsp page...write data to a pdf file when i run jsp page  Hi, <%@page import
Create Data Grid in JSP page
Create Data Grid in JSP page   ... grid that shows data from database table in jsp page. In this jsp code given... this data grid will fetch data and show in a jsp page. We have used database name

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.