java pages run

Ads
 

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

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

Ads









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 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
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
java program run on thml page?
java program run on thml page?  how to run java program on html page using text area
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
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
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
Java Applet
Applets are Java programs that run on java enabled web browser. Java applets...: There are various advantages of using Java Applets: They can run on any...: Web browsers and operating system require Java plug-in to run applet
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
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 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
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
pls tell me the difference between the run() and start() in threads in java....
pls tell me the difference between the run() and start() in threads in java....  difference between the run() and start() in threads in java
How to run a Java program in CMD
There are multiple ways to write and run Java programs. In this article we discussed how to write and run Java program in CMD. Tips to run Java program... the given command. C:\myproject> java HelloWorld This will run the Java
java code to insert select at run time....????
java code to insert select at run time....????  java database code...;/html> 2)edit.jsp: <%@page language="java"%> <%@page import... the application Java Swing then Visit Here   You can also visit
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
How to run java swing application from jar files .
How to run java swing application from jar files .  Hello Sir, I developed a java swing application .Now i want to execute it as .exe setup file .As per my knowledge i have to run .jar file from dist folder
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. Copied the error stack trace below. Exception: java.lang.ClassNotFoundException
Applet in Java
. They are embedded into HTML pages and run on Java enabled web browsers like Mozilla... the Internet and run them. An Applet is a Java subclass that extends... through Java-enabled web browsers. Advantages of Applet: Applets can run
We can run Java on most platforms provided a platform must has a Java interpreter
; We can run Java on most platforms provided a platform must has a Java... of the activities of the Java run-time system. It loads Java class files and interprets..., the Java interpreter can't directly run them because they are used as part
HTML pages.
HTML  pages. Description : HTML is a hypertext markup language. Every HTML page has two part one head part another is body. It will  run on browser. Anything available in head will not display on browser. Body part is used
How to stop java scripting engine when the script being run is taking too much time?
How to stop java scripting engine when the script being run is taking too much time?   How to stop java scripting engine when the script being run is taking too much time? for e,g, in case of infinite loop the memory is getting
jsp pages
jsp pages  I am using 3 jsp pages in an application.. 1.login.jsp 2.checkuser.jsp:is connected to databse..from this page im giving path to search.jsp 3.search.jsp:Here we need fetch data from data base..do u want to connect
how to run java program that has several classes under package from usb drive?
how to run java program that has several classes under package from usb drive... command line and it works. I copied all java files and class files to flash drive... package. I have to use following line on command line to compile and run my program
php create pages automatically
php create pages automatically  How to create pages automatically in PHP
Iterating through pages
with a sample java/ jsp code or technical details of how to iterate through the pages...". And the next 100 records will get displayed in the page2. The pages go on wrt
JavaServer Pages (JSP) Roseindia
pages that get compiled into Java servlets the first time they are invoked. JSP...JavaServer Pages (JSP) is used to develop dynamic web content on the server using HTML, XML templates, and Java code. JSP is extensively used because
Ajax Pages
Ajax Pages       Ajax Pages is a scripting template engine that enables rapid development of Ajax Web-based Applications, just like GMail, Google Maps, A9 and Backpack, but without having

Ads