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



Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


alisha maharjan
java pages run
1 Answer(s)      2 years and a month ago
Posted in : Java Beginners


how do we run jsp file in the browser. do we need to install server. could it be run on the xamp server


Advertisement
View Answers

September 10, 2012 at 10:27 AM


You need Apache Tomcat Server to run the jsp code over it. Follow these steps to run the simple jsp code.

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-5.5.

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



Related Tutorials/Questions & Answers:
java pages run
java pages run  how do we run jsp file in the browser. do we need to install server. could it be run on the xamp server   You need Apache Tomcat Server to run the jsp code over it. Follow these steps to run the simple
linking of pages in java
a register page how can i do this in java (applet ie frames)i made to pages one for login and other for register pls rply   Java linking two pages...linking of pages in java  i made a login form accountno: password
Advertisements
best os to run java
best os to run java  which is best os to run java program
Java run time polymorphism
Java run time polymorphism  What is run-time polymorphism or dynamic method dispatch
how to run - Java Beginners
how to run   how to run java program... brifely  Hi Friend, Java Virtual Machine is responsible for running java program.Java uses... to execute or run the program. For ex, If you have the following java program
java not run on my pc
java not run on my pc  i have installed java in pc but when i run and compile any program the massage is display that 'javac' is not recognized as an internal or external command
java code for registration and login pages, mysql as a bankend.
java code for registration and login pages, mysql as a bankend.  please send me the java code for registration and login pages and to store the data in mysql
compile and run java program
compile and run java program  Hello, everyone!!! I just want to ask if you anyone here knows how to compile java file in linux specifically UBUNTU. For example, I have a java file named Hello.java and saved at my desktop. how
how to run java program
how to run java program  i have jar file. in jar i have so many classes.in one of file i want modify .after modifying file i want replce in jar. please help me to how to generate class and how to replace
run a java application - Java Beginners
run a java application  Hai Deepak, I ve set my environment... run any java file.So i want to know the problem actually i had.Thanks in advance...; CLASSPATH= C:\Program Files\Apache Tomcat 4.0\common\lib\servlet.jar; JAVA_HOME=C
java server pages - Java Server Faces Questions
java server pages  code for jsp login page if user forgot password reminding password with hint question.the table login is created in database  Hi Friend, Try the following code: 1)email.jsp: Enter Email
How to compile and run Java program
How to compile and run Java program  How to compile and Java program..., For compiling and running the Java program from command prompt you should must have JDK... tutorial Compiling and Running Java program from command line. If Java
Java Thread : run() method
Java Thread : run() method In this section we are going to describe run() method with example in java thread. Thread run() : All the execution code is written with in the run() method. This method is part of the Runnable interface
Introduction to the JSP Java Server Pages
source code. Introduction to JSP Java Server Pages or JSP... applications.   JSP Tutorials - Introducing Java Server Pages Technology JavaServer Pages (JSP) technology is the Java platform
Tutorials - Java Server Pages Technology
Tutorials - Java Server Pages Technology   .... The JavaServer Pages specification extends the Java Servlet API... of products to run Java applications on the server has made this a fast-moving
Java Server Pages(JSP)
Java Server Pages(JSP)       JavaServer Pages (JSP) technology provides... and platform-independent. The JavaServer Pages specification extends the Java Servlet API
java run time error - JDBC
java run time error  when i m running for batch execution program in jdbc i m facing this kind of runtime error as Exception in thread "main" java.sql.SQLException: Io exception: The Network Adap ter could not establish
run ttime error - Java Beginners
run ttime error  how to compile a client server application using RMI ?  Hi friend, I am sending you a link. This link will help you. Please visit for more information. http://www.roseindia.net/tutorials/rmi/rmi
doesnt run again - Java Beginners
doesnt run again  the code u sent doesnt run and the error msg says illegal start with do even if i change it it keeps telling me the same... the soltion   Hi I am sending u again the code, this code run in my
Run this code..plzz - Java Beginners
Run this code..plzz  Hi Friend... ERROR: Exception in thread "main" java.lang.NullPointerException at java.awt.Container.addImpl(Container.java:1015) at java.awt.Container.add(Container.java:351
Java code to run unix command - Java Beginners
Java code to run unix command  Hi, I need a java code to connect to a remote unix server and run a unix command. Please help. Regards, Pratyush
why java program not run with msword editor
why java program not run with msword editor  if java program write in MICROSOFT WORD then why they are not run with jdk
How to Run First Java Bean Program ?
How to Run First Java Bean Program ?  Hi My Dear Friend I can run many Java Programs Like, Applet,Swing,RMI ,Socket Programming and Java Servlet too But Now I need that How to run Java Bean Now I have BDK1.1 But still don't
java run time error - Java Beginners
java run time error  when i compile my program it didnt show any error in my program.but i cant run my program, if i run my program means..." java.lang.ArrayIndexOutOfBoundsException: 0 at Armstrong.main(Armstrong.java:22) Java Result: 1
JSP - Java Server Pages
JSP JSP stands for Java Server Pages. JSP is Java technologies for creating dynamic web applications. JSP allows the developer to embed Java code inside HTML. It makes the development of dynamic web application very easy in Java
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 to run a java program using run.exec()?
how to run a java program using run.exec()?  Hi..i want to compile and run a java file using run.exec().i.e., without compiling and running from.... can i expect a sample java program using run.exec(). Thanking you
error in java progran at run time - Java Beginners
error in java progran at run time  Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet program My Servlet-- Error
error in java progran at run time - Java Beginners
error in java progran at run time  Hello sir,,, i make a servlet program in java,,but i face some problem,,so please me.. Actually this type of error are come in my all servlet program My Servlet-- Error
how to run java application with out stoping
how to run java application with out stoping  I have one java application to download some pdf file but its going to stop downloading after some time it not giving any errors any thing can any one help me to solve this problem
how to run org.jfree programss - Java Beginners
the above link java programs........ Thanks  Hi Friend, To run...how to run org.jfree programss  Hi frends, I was trying to run java programs to draw graphs from the link as my frend deepak has given
Advertisements
 

 

 

DMCA.com