| | |
.jsp file
Please support our JSP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Oct 2009
Posts: 3
Reputation:
Solved Threads: 0
i m a stater with jsp .... have installed Tomact 5.0.28. Its displaying server page when i type http://localhost:8080
now i have made a simple context.jsp file---->
placed it in a folder ch in webapps folder of tomcat...
when i try to run it by
http://localhost:8080/ch/context.jsp
it shows the error
type Status report
message /Context.jsp
description The requested resource (/Context.jsp) is not available.
please help....
now i have made a simple context.jsp file---->
JSP Syntax (Toggle Plain Text)
<HTML> <HEAD> <TITLE> Context </TITLE> </HEAD> <BODY> <% out.println("First JSP APPLICATION"); %> </BODY> </HTML>
placed it in a folder ch in webapps folder of tomcat...
when i try to run it by
http://localhost:8080/ch/context.jsp
it shows the error
type Status report
message /Context.jsp
description The requested resource (/Context.jsp) is not available.
please help....
Last edited by peter_budo; Oct 11th, 2009 at 10:54 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks).
-1
#2 Oct 11th, 2009
You got general direction of the wind that files that you wish to deploy should be placed in webapps folder, unfortunately it is not full truth.
You need to provide your "ch" folder with minimal Tomcat deployment directory structure.
You need to provide your "ch" folder with minimal Tomcat deployment directory structure.
- Create new project folder in directory webapps (you already did this with creating new folder named ch)
- Place context.jsp in "ch" folder (you already did)
- In project folder create another folder called WEB-INF where you will save web.xml
- Create web.xml
XML Syntax (Toggle Plain Text)- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE web-app
- PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
- "http://java.sun.com/j2ee/dtds/web-app_2_3.dtd">
- <web-app>
- <welcome-file-list>
- <welcome-file>context.jsp</welcome-file>
- </welcome-file-list>
- </web-app>
- Start server and call your JSP
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- How to Execute JSP FIle (JSP)
- retrieve from db and display in a jsp file (Java)
- tomcat showin error while executing jsp file (JSP)
- How to run jsp file using jcreator (JSP)
- Auto loading a jsp file (JSP)
- Passing arguments to jsp file (Java)
Other Threads in the JSP Forum
- Previous Thread: JSP XML parser
- Next Thread: problem in comparision of dropdown value and database vale
Views: 543 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for JSP
apache array backbutton combobox comma connection csv database development directorystructure dropdownlist dynamicpagetitles eclipse frames glassfish ie8 imagetodatabse imageupload integer internet java javaee javascript jsf jsp jsppagetitles levels mvc2 mvcmodel2 mysql netbeans network parameters passing ping printinserverinsteadofclient project read redirect request.getparameter response seperated servlet servletdopost()readxml sessions software sql ssl state_saving_method stocks sun tomcat tutorial update values video web write






