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



Home Answers Viewqa JSP-Servlet write Div in jsp page
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Viral Sonawala
write Div in jsp page
1 Answer(s)      5 years and 10 months ago
Posted in : JSP-Servlet



Advertisement
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>




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
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
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>
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"
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 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
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 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
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
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
How to align div side by side?
Example of aligning DIV side by side in HTML page In this tutorial I will explain you how you can align the div side by side using CSS. The CSS... div side by side?. If you are looking for the tutorial for aligning the DIV
DIV in HTML
DIV in HTML  What is DIV in HTML
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
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">
JSP Tutorials - Page 3
JSP Tutorials - Page 3
Write an Applet which display current date and time on the web page??
Write an Applet which display current date and time on the web page??  Write an Applet which display current date and time on the web page?? ...;BODY> <div align = "center"> <APPLET CODE = "ClockApplet" WIDTH = "500
Write an Applet which display current date and time on the web page??
Write an Applet which display current date and time on the web page??  Write an Applet which display current date and time on the web page? ...;BODY> <div align = "center"> <APPLET CODE = "ClockApplet" WIDTH = "500
write a program for creating html page with images and 2 buttons
write a program for creating html page with images and 2 buttons  write a program for creating html page with images and 2 buttons
The Page Directive in JSP Page
The Page Directive in JSP Page     ... of the JSP page which works for the entire JSP page. These directives apply different... and explanation one-by-one. This is the directive of the JSP page which defines
div align left css
div align left css  Hi, How to align the div to left using the css in HTML page. Thanks
jsp page submitting
jsp page submitting  whenever i am submitting the jsp page it downloads some unknown file on tomcat server
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
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
 

 

 

DMCA.com