How To Run Jsp Program Using Wamp Server

Posted on  by  admin

<%@ page language='java' contentType='text/html'%<%@ page import='java.text.,java.util.' %Date JSP<% SimpleDateFormat sdf=new SimpleDateFormat('MM/dd/yyyy');%Welcome to Tomcat!

Today is <%= sdf.format(new Date)%The program contains <%@ tags that provide metadata about the JSP and import directives. The JSP also contains HTML tags that will be rendered by the browserin the usual way. Note the <% tags that encapsulate Java code. The snippets of Java code are referred to as 'scriplets.' When theJSP is requested by the browser, the program will be converted into a servlet by a program in the Tomcat container ( Jasper) and the HTML output will be sent tothe browser.

Save your file as DateJSP.jsp. Copy your file to CATALINAHOME/webapps/ROOT, e.g., c:/Tomcat8/webapps/ROOT.

Start the Tomcat server. Start your browser if it is not already running. In the address area of the browser, type and submit that address to the browser. The output of your JSP page will be displayed. Author: Stephen WithrowStephen has over 30 years' experience in training, development, and consulting in a variety of technology areas including Java, C, C, XML, JavaScript, AJAX, Tomcat, JBoss, Oracle, and DB2.

How to run jsp program using wamp server ip

Wamp Tutorial

How To Run Jsp Program Using Wamp Server

Sample Jsp Program

His background includes design and implementation of business solutions on client/server, Web, and enterprise platforms. Stephen is a published writer in both technical and non-technical endeavors. Stephen received an undergraduate degree in Computer Science and Physics from Florida State University.

Coments are closed