write Div in jsp page

Ads

 
 

Share on Google+Share on Google+

Viral Sonawala
write Div in jsp page
1 Answer(s)      8 years ago
Posted in : JSP-Servlet
Ads
View Answers

January 24, 2009 at 3:55 AM


Hi Viral Sonawala

<DIV> tag is a html tag, perform the same function in jsp as used in html.

Example:
<div style="color:#00FF00">
<h3>This is a header</h3>
<p>This is a paragraph.</p>
</div>

The <div> tag is supported in all major browsers.

Optional Attributes: align : left,right,center,justify

standard attribute: id, class, title, style, dir, lang, xml:lang

Event attribute: onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown, onkeyup.

Like:

<div style="left: 0px; top: 60px" class="DivStyle1">
<form action="report.jsp" method="post">
<input type="hidden" name="emplno" value="<%= %>"/>
<input type="hidden" name="date" value="0"/>
<input type="submit" name=emplno value="See Recorded Times">
</div>



Ads









Related Tutorials/Questions & Answers:
write Div in jsp page - JSP-Servlet
write Div in jsp page  How can i write Div class in jsp page?  Hi Viral Sonawala tag is a html tag, perform the same function in jsp as used in html. Example: This is a header This is a paragraph
loading page in div
loading page in div  how to load another web page in div?   <div name="iframe" id="iframe"></div> <iframe id="foo" name="foo" src="http://www.w3schools.com/"></iframe> //and in Javascript
Advertisements
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="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
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="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
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="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
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="com.itextpdf.text.,com.itextpdf.text.pdf.,java.io.*;"%> </head>... to open the pdf file when i execute the jsp page
Show mu;tiple DIV contents in a page
Show mu;tiple DIV contents in a page  Hi All; I want to show.... on selecting an option, it should display 1 div out of 3 div contents. 1st div tag contains 1 text box, 2nd div tag contains 2 text boxes, 3rd div tag contains 3 text
write a jsp parser
write a jsp parser  I want figure out the variable used in a particular jsp and put it in a xml.I can do it manually but there are whote lot of a jsp to figure out .So can anyone can tell me a option to build a jsp parser
WRITE a simple JSP
WRITE a simple JSP  Write a JSP that accepts a string parameter from the browser and simply displays it back in the HTML response   Hi Friend, Try the following code: 1)form.jsp: <html> <form name="form
how to divide 1 web page into some parts using div tag...
how to divide 1 web page into some parts using div tag...  how... it in jsp. my friend told it can b done using div tag. i ve tried bt couldnt do... creating home page,bt m nt knowing how to divide that into frames in jsp
can we write a method in JSP - JSP-Servlet
for execution) of first jsp file by redirecting second page to the first page. I can call...can we write a method in JSP  Hi All, In my web application I want to call another second jsp file. I can do it by redirecting my first jsp file
passing values between jsp file through hyperlink in div tag
passing values between jsp file through hyperlink in div tag  <...:include page="/jsp/admin/Adminmenu.jsp" &gt; &lt;/jsp:include&gt...="prettyprint">&lt;%@ page import="vo.SearchProjVO"%&gt; &lt
write xml file with jsp useBean - JSP-Servlet
write xml file with jsp useBean  how to write into xml files with jsp.. the code for writing is in a class.. pls help me to solve this..thanx...\. Read for more information, http://www.roseindia.net/jsp/jdo
Help with jQuery show hide div script - JSP-Interview Questions
Help with jQuery show hide div script  Hi guys, I have a jquery script for showing and hiding the content inside, between two divs, controlled with radiobuttons. I like to use the same jquery script for another group of divs
How to write first JSP Hello World example?
How to write first JSP Hello World example?  Hi, How to make first... to make fist JSP page which prints the Hello World example. Thanks   Hi, For making a simple JSP page you will have to make first helloworld.jsp.
JavaScript Hide Div
JavaScript Hide Div...; In this section, we are going to hide div element on clicking the button using the JavaScript. In the given example, we have created a div element using <div>
How to write javascripts - JSP-Servlet
How to write javascripts  Dear sir, How to write a java scripts? I have a one table in that i have a radio button and soon..And also i have a submit button.If i didnt select any radio button and click on a submit button
jsp page - JSP-Servlet
jsp page  what are elemets and template data in jsp page??  Hi Friend, Template Data is a parameterized content that allows the JSP document to generate a response stream of characters. JSP Elements provides
How to make a horizontally Scrollable grid in jsp using div, table, css, javascript?
How to make a horizontally Scrollable grid in jsp using div, table, css, javascript?  In a jsp page InsertUpdate.jsp (say) there is a button Insert... saving data would be viewed in grid in the same page. Now problem is that, I need
How to write javascripts - JSP-Servlet
How to write javascripts  Dear sir, I got u r code ,thanks for posting me ,but i have a problem.In a table if no of rows are present then its works fine,when their is only a single row then if i select that row
How to write jsp/servlet code to integrate LINKDIN?
How to write jsp/servlet code to integrate LINKDIN?  How integrate linkdin api's in java codding
How to write .properties file from jsp
it in my jsp but Iam unble to modify/write the .properties file and Iam not getting... to implement/write .properties file from jsp. Regards, Venkatesh Gurram...How to write .properties file from jsp  Hi i new to java i stuck here
How i write a function/method in jsp?
How i write a function/method in jsp?  How write the function/method in jsp? Using that method i can retrieve the value coming from database. give me example plz. Actually i want to show the list of user detail
DIV in HTML
DIV in HTML  What is DIV in HTML
upload a file and write it in JSP using servlet
upload a file and write it in JSP using servlet  Hello, I'm facing a problem here. I want to upload a file through abc.jsp and write the contents of file using a servlet in xyz.jsp. It is supposed to be a excel file which
JavaScript move div
JavaScript move div...; This section illustrates you how to move a div element on the window using JavaScript. In the following code, we have defined a div element consisting of text
JavaScript getElementById div
JavaScript getElementById div... example we have used document.getElementById() method to get access to a div element...() method on a div element. We have created a div with the id "myDiv"
write to file from servlet - JSP-Servlet
write to file from servlet  Hi, I have a jsp file where I input... JSP Page //<... right data on the web site. I am also trying to write this data to file
jsp page
jsp page  <%@page contentType="text/html" pageEncoding="UTF-8"%>...;%@page import="java.sql.Statement"%> <%@page import="java.sql.DriverManager"%> <%@page import="java.sql.Connection"%> <%@page import
jsp page
jsp page  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HOW WRITE GREEK CHARACTERS INTO MYSQL BY JSP ?
HOW WRITE GREEK CHARACTERS INTO MYSQL BY JSP ?  HALLOW TO ALL ! I'M USING MYSQL5.5 , TOMCAT7 & JSP. IN MY BROWSER I'M SEEING GREEK CHARS BECAUSE OF UTF-8 ENCODING . WHEN I RETRIEVE DATA FROM DATABASE BY SELECT * FROM