Home Jsp Simple-jsp-example HTML tags in JSP
Questions:Ask|Latest

 
 

Share on Google+Share on Google+

HTML tags in JSP

Advertisement
In jsp we have the facility provided to use the html tag inside the JSP code.

HTML tags in JSP

        

In jsp we have the facility provided to use the html tag inside the JSP code. 

In this example we have used the html tag inside the println() method of the out implicit object which is used to write the content on the browser. 

 

The code of the program is given below:

 

 

<html>
<head>
<title>Use of html tag in jsp code</title>
</head>
<body>
<center>
<FONT SIZE="5" COLOR="#660033">Use of html tag in jsp code</FONT>
<table bgcolor="#CFE7E7" border="1">
<tr><td>
<%@ page session="false" %>
<%
   out.println("<code>out</code> is an <b>");
   out.println(out.getClass().getName());
   out.println("</b> object.");
%>
</td></tr>
</table>
</center>
<body>
<html>

Output of  the program:

Download this example.

Advertisements

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: March 12, 2008

Related Tutorials

Ask Questions?    Discuss: HTML tags in JSP   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
kurmarao
October 11, 2011
jsp

programing probulam
rahul
February 23, 2012
sasa

good
yms
August 1, 2012
jsp

i tried to access value of textbox using name of textbox(.) name but that is not accessing.can u suggest for solve that problem?
DMCA.com