run jsp file

run jsp file

how to run the jsp file in varies web servers

View Answers

November 22, 2010 at 3:15 PM

Hi Friend,

For Apache Tomcat,there is a basic directory structure:

webapps-Web Application Folder- WEB INF-classes

You have to set the class path also. The jsp file is to be saved into the web application folder.Let the file be 'abc.jsp' and web application folder be 'examples'. Start the tomcat server.Then open the browser and type the following url:

http://localhost:8080/examples/abc.jsp

For more information on JSP visit to :

JSP Tutorials

Thanks


March 23, 2012 at 5:39 PM

assume the jsp file name is: sample.jsp

copy and paste your sample.jsp file in to the directory C:\Apache Software Foundation\Tomcat 7.0\webapps\examples\jsp

now the url is:http://localhost:8080/examples/jsp/sample

paste in to your browser surely u willl get output...

Regards BASKAR N









Related Tutorials/Questions & Answers:
run jsp file
run jsp file  how to run the jsp file in varies web servers  ... the class path also. The jsp file is to be saved into the web application folder.Let the file be 'abc.jsp' and web application folder be 'examples'. Start the tomcat
how to run a .exe file in jsp
how to run a .exe file in jsp  i want code for to run a .exe file in jsp
Advertisements
Jsp error when i run this a jsp file
Jsp error when i run this a jsp file  hi I got this error when i run the jsp file in IDE and outside also please help me java.lang.NullPointerException org.apache.jsp.insertjsp.jspInit(insert_jsp.java:22
To run a jsp file automatically - IDE Questions
To run a jsp file automatically  Hi all, I am in need for the solution for - Can a JSP page can be made to run automatically when NetBeans IDE has been started. or we have to compile and run it automatically? I
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to open the pdf file when i execute the jsp page...{ document.close();} %> </body> I added itextpdf jar file
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to open the pdf file when i execute the jsp page...{ document.close();} %> </body> I added itextpdf jar file
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to open the pdf file when i execute the jsp page...{ document.close();} %> </body> I added itextpdf jar file
write data to a pdf file when i run jsp page
write data to a pdf file when i run jsp page  Hi, <%@page import... to open the pdf file when i execute the jsp page...{ document.close();} %> </body> I added itextpdf jar file
How to save run time created text-file on a disk using jsp/servlet?
How to save run time created text-file on a disk using jsp/servlet?  I have a JSP page with save button.In that I created the file(e.g a.txt) at run-time,when I click on the save button,it will ask where to save the file
JSP File
JSP File  Hi, What is JSP File? How to create JSP file? Thanks   Hi, JSP file is simple text file with .jsp extenstion. You can run JSP file on tomcat server. Read more at JSP tutorials section. Thanks
How to compile and run the JSP
How to compile and run the JSP  Hi Kindly tell me how to run and compile JSP small Program using Tomcat as webserver. I created small program HELLO JSP in HTML and compile the program but it is saying Class o r interface
Run XML file
Run XML file  Hi.. How do I execute or run an XML file? please tell me about thatADS_TO_REPLACE_1 Thanks
How to run JSP program inEclipse?
How to run JSP program inEclipse?  Hi, I am learning JSP. I want to run JSP in Eclipse. How to run JSP program inEclipse? Thanks   Hi, Its easy to run JSP from the Eclipse. You have to make a dynamic web application
JSP run problem
JSP run problem  type Exception report message description... this request. exception org.apache.jasper.JasperException: Exception in JSP...) root cause java.lang.NullPointerException org.apache.jsp.bb_jsp
how to deploy and run jsp - JSP-Servlet
in the root directory . If you run on localhost then in browser file...how to deploy and run jsp  hi anybody plz tell how to deploy and run jsp. and where jsp and html files save in web-inf or any where?  Hi
jsp-file
jsp-file  i want to upload a file by browse button and the file should be save in ms access database.....how i can implement trough jsp plz help me sir
how to run a vlc player in jsp
how to run a vlc player in jsp  how to run a vlc player in jsp
JSP handle run-time exceptions
JSP handle run-time exceptions  How does JSP handle run-time... to have uncaught run-time exceptions automatically forwarded to an error processing... the browser to the JSP page error.jsp if an uncaught exception is encountered during
how to run jdbc in jsp program - JSP-Servlet
how to run jdbc in jsp program  i want to use sql server 2005 in jsp program to store data.i know how to run simple program but this program i tried... visit the following links: http://www.roseindia.net/jsp/submit-comments
how to run jsp appication in eclipse
how to run jsp appication in eclipse  after setting the tomcat in eclipse, i m trying to run jsp page, but the pop up has come that "selection did not contain any resources that can run on server". plase tell me i m new to handle
run a batch file through javascript
run a batch file through javascript   How to run a batch file through javascript without prompting
not able to run in gcj file - JDBC
not able to run in gcj file   We have a java program in Linux environment, which hits DB for some data and encode the same. We need to compile... to run the java program it says that Classes12.Jar?s oracle Driver missing. We
JSP and Servlet did not run - JSP-Servlet
JSP and Servlet did not run  I tried to run this program but when I... --------- Simple Use of Servlet and JSP... the following: 1)index.jsp: Simple Use of Servlet and JSP Conference
jsp file - JSP-Servlet
jsp file  org.apache.jasper.JasperException: /jsp/admin/UserRegistration.jsp(155,4) According to the TLD or the tag file, attribute valu e... org.apache.jasper.JasperException: /jsp/admin/UserRegistration.jsp(155,4) According
how to run servlet - JSP-Servlet
how to run servlet  pls give me comlete procedure to run the servlet on apache-tomcat 6.0.16 how can i set my classpath, java_home etc. also where i have to save my servlet program and how it compile and then run on web browser
Unable to run the jsp page - JSP-Servlet
Unable to run the jsp page  Expert:Naga Hi, I need solution this program. In cart.jsp I printed the total amount of the products then the next page is shipping and billing details and the next page is payment details. What
platform(s/w requirements) for run jsp programs?
platform(s/w requirements) for run jsp programs?  in which platform jsp programms are run
Unable to run jsp files on internet explorer - JSP-Servlet
Unable to run jsp files on internet explorer  Hi, I am Akhilesh... i open a jsp file nothing gets loaded in the internet explorer and internet..., Store the jsp file in given link /home/vinod/Desktop/apache
run command prompt from jsp program
run command prompt from jsp program  Hi.... Is it possible to run a command prompt from jsp? If possible please help me with some code... Thanks & Regards vanchinathan.R
to run html code in web browser - JSP-Servlet
to run html code in web browser  how to run jsp file which calls html file on web browser??  Hi Friend, Try the following code: 1)form.jsp: Enter Name: 2)welcome.html: Add Profile Edit
written in jsp file
written in jsp file  how to create and write in a jsp file through simple core java code
jsp upload file to server
jsp upload file to server  How to create and upload file to server in JSP?   Find the given example that explains how to upload single and multiple file on server using JSP
parsing xml file in jsp
parsing xml file in jsp  example that pars XML file in JSP
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
Creating dynamic jsp file in java file to include another jsp file
Creating dynamic jsp file in java file to include another jsp file  I am able to create jsp file in java that includes ; table tr td and img tags..... Need to include jsp file in the same content. The below code doesn't help me
include a jsp file
include a jsp file   Sir, I have 2 jsp pages. I want to include second jsp in the first jsp page when a button in the first jsp is clicked. how can I do this. I tried in sevaral ways . I am using jsp and javascript... anyone
Sending File - JSP-Servlet
Sending File  How to use tag in Jsp, & How read a file fom Client  Hi Friend, We used tag to upload a file. Please visit the following links: http://www.roseindia.net/jsp/fileupload.shtml http
file insertion - JSP-Servlet
file insertion  How to insert and retrieve .doc files into sql server with example using jsp and servlets
New to JSP..need help to make & run a JSP program.
New to JSP..need help to make & run a JSP program.  Hi, I have... api.jar file inside the lib folder. Now create a jsp file:'hello.jsp'ADS_TO_REPLACE_3... is <%=st%> Put this jsp file inside the apache-tomcat>>webapps>
take variables in text file and run in java
take variables in text file and run in java  I have a text file which have variables 17 10 23 39 13 33 How to take "17"in java code
How Run JSP in Apache TomCat Server? - JSP-Servlet
How Run JSP in Apache TomCat Server?  How to Run JSP in Apache Tomcat... pasted my hello world example of JSP in the Jsp-example directory. and tried. ... the Jsp-example\WEB-INF\classes directory and put the class files of your example
JSP file download - JSP-Servlet
JSP file download  Hi! I am saving (webapp/docs/sample.docx) path of the word file in database. when i want to download that file i am eliminating that file path using path.subString(16).. upto docs/. when i am clicking
file size - JSP-Servlet
coding in the roseindia at the following url: http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml. But, this jsp action file will not check.... http://www.roseindia.net/jsp/file_upload/employee_upload_profile_image.shtml
pdf file in jsp
pdf file in jsp  i have a pdf, which has to be displayed in a jsp page along with some html tags, the pdf which is to be displayed shold be readonly and wont allow the uer to save too
Could not able to run Java Applet in JSP using <jsp:plugin>
Could not able to run Java Applet in JSP using   I could not able to run the above example applet in the JSP. Getting class not found exception... the following links: http://www.roseindia.net/jsp/applet-jsp.shtml http
File uploading - JSP-Servlet
. http://www.roseindia.net/jsp/file_upload/Sinle_upload.xhtml.shtml...File uploading  i am using file uploading code for multiple file and aslo for single file but i am getting problem that No such file found
External file reading in jsp
External file reading in jsp  i have written a jsp page(ReadExt.jsp) in my application which reads a text file content from a system... used java code in jsp page ... and tel me how can i make it work in other system
pasing variables in jsp file - JSP-Servlet
files share variables and how can one pass local variables from one jsp file to another jsp file?  Hi Friend, To pass variables from JSP file to another JSP file ,do the following: 1) create jsp page 'passVariable.jsp'and use
file uploading - JSP-Servlet
file uploading  Hi, thanks a lot for your kind answer. Now my program... problem. Im not geeting the full output for the program. Even, the file... to solve the problem as well. Thanks in advance. Input File
External file reading in jsp
External file reading in jsp  i have written a jsp page(ReadExt.jsp) in my application which reads a text file content from a system...; The given code reads the given file. It uses BufferedReader class to read

Ads