Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa JSP-Servlet Unable to execute JSP page
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Basumitra Mitra
Unable to execute JSP page
1 Answer(s)      3 years and 9 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.


Advertisement
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 Tutorials/Questions & Answers:
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
Advertisements
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
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 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
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
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 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 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
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
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 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
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
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
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
jsp page submitting
jsp page submitting  whenever i am submitting the jsp page it downloads some unknown file on tomcat server
JSP page directive tag
JSP page directive tag  What is page directive tag in JSP?.   Hi, The answer given below: The page directive applies to an entire JSP... unit. or Defines attributes that apply to an entire JSP page. Thanks
create a folder in jsp page
create a folder in jsp page  i want to create a folder in jsp page And it can be delete aslo
JSP Error Page
JSP Error Page          JSP Error Page is used to specify the custom... of errorPage attribute of the page directive in jsp. This attribute sets a url
Forward a Jsp Page
Forward a Jsp Page In this example program we will show you how to use the <... is not logged in you can forward the user on the login page. Here is the use of <jsp:forward tag: <jsp:forward page="
Search Page in jsp
Search Page in jsp  search page in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
refresh jsp page - Ajax
refresh jsp page  Code for refresh a web page in jsp.  Hi friend, function refreshpage() { window.location.reload
Search page form in jsp
Search page form in jsp  search form in jsp   Please go through the following links: http://www.roseindia.net/jsp/user-search.shtml http://www.roseindia.net/servlets/search.shtml
jsp login page
jsp login page  hi tell me how to create a login page using jsp and servlet and not using bean... please tell how to create a database in sql server... please tell with code
 

 

 

DMCA.com