babukumar thannasi

Greenhorn
+ Follow
since Sep 13, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by babukumar thannasi

thanks Pawel, i tried moving the static block below variable declarations, i see the response as explained by you. could you please share the link to JLSSE7 or the section in which this final initialization is define?

i am searching in this page https://docs.oracle.com/javase/specs/jls/se7/html/jls-12.html#jls-12.4.2 , could not find the steps you mentioned.
Hi All,
we need to create a TextBox in side Excel to hold a rich text string. so after final report export, users can adjust the text postion.

so i have tried following code from my jsp . but i am not seeting the text at all.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" pageEncoding="ISO-8859-1"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFSheet"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFWorkbook"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFPrintSetup"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFPatriarch"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFClientAnchor"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFTextbox"%>
<%@ page import="org.apache.poi.hssf.usermodel.HSSFRichTextString"%>
<%@ page contentType="application/vnd.ms-excel" %>
<%@ page import="java.io.*" %>
<%@ page import="java.util.*" %>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<html:html>
<head>
<link rel="stylesheet" href="../../../theme/Master.css" type="text/css">
<title>POI</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta name="GENERATOR" content="Rational Software Architect">
</head>
<body>
<%
try{
HSSFWorkbook hwb = new HSSFWorkbook();
HSSFSheet sheet = hwb.createSheet("new sheet");
HSSFPatriarch patriarch = sheet.createDrawingPatriarch();
HSSFTextbox textbox1 = patriarch.createTextbox
(new HSSFClientAnchor(0,0,0,0,(short)1,1,(short)2,2));
textbox1.setString(new HSSFRichTextString("Rajesh Kumar") );
FileOutputStream fileOut = new FileOutputStream
("c:\\excel\\createBox.xls");
hwb.write(fileOut);
fileOut.close();
out.println("Your excel file has been generated");
} catch ( Exception ex ) {
}%>
</body>
</html:html>


any idea why i am not able to ?
Hi ,
we have a jsp with more Div tags(we used z index property to show one layer top of another).
Now we have to export the data in this page to excel. the normal method
(<%@page language="java" contentType="application/vnd.ms-excel; charset=UTF-8"pageEncoding="ISO-8859-1"% )to export this is not properly exporting all layers. is there any other way to do it
thanks
Babu
16 years ago
JSP
Thanks Bibeault,
i found the issue now, in my JSP , if i have Doctype as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> its working fine . However,

if i have Doctype as

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> in my jsp its not working ..

is the CSS : z-index: property is any thing to do with doctype?
can any body explain why it is behaving so ?
Thanks for the reply Bibeault,


But when i run this as a HTML file from my IDE (RSA 7), the browser renders this correctly, and when i run the jsp file , the browser is not rendering the layer, i mean z-index: property
[ September 13, 2007: Message edited by: babukumar thannasi ]
Hi All ,
i have a Strange issue with z-index: property, when i include this in my div tag to display one layer over another it works fine in .html file. but when i convert this as jsp , the layer ovelapping is not happing.

i am using IE6.
Server WAS6.1.

Please let me know what mistake i am making
thanks
Babu

below is my html code.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<style type="text/css">
.mystyle {
border-collapse: collapse;
font-family:Arial;font-size:10px;
}
td.border1 {
border:#666 solid 1px;
width:33pt;
}
</style>
<BODY>
<div class="scrollingtable" style="width:600px; text-align:left; height:475px; border:1px solid #666; margin-top:10px; background-color:#fff; overflow:scroll;">
<div>
<table class="mystyle" style="width:465px;">
<thead>
<tr height="10">
<th style='width:10px'></th>
<th style="width:30px;text-align:center;">Pizza</th>
<th style="width:350px;text-align:center;">Idly</th>
<th style="width:75px;text-align:center;">Sambar </th>
</tr>
</thead>
<tr height="20">
<td class="border1">

1</td>
<td class="border1">2</td>
<td class="border1">3</td>
<td class="border1">4</td>
</tr>
</table>
</div>
<div style=" top: 13;left: 99;position: absolute;z-index: 1; visibility: show;">Hi</div> </div>
</BODY>
</HTML>



below is my jsp code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<HTML>
<HEAD>
<TITLE> New Document JSP </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">
</HEAD>
<style type="text/css">
.mystyle {
border-collapse: collapse;
font-family:Arial;font-size:10px;
}
td.border1 {
border:#666 solid 1px;
width:33pt;
}

</style>
<BODY>
<div class="scrollingtable" style="width:600px; text-align:left; height:475px; border:1px solid #666; margin-top:10px; background-color:#fff; overflow:scroll;">
<div>
<table class="mystyle" style="width:465px;">
<thead>
<tr height="10">
<th style='width:10px'></th>
<th style="width:30px;text-align:center;">Pizza</th>
<th style="width:350px;text-align:center;">Idly</th>
<th style="width:75px;text-align:center;">Sambar </th>
</tr>
</thead>
<tr height="20">
<td class="border1">

1</td>
<td class="border1">2</td>
<td class="border1">3</td>
<td class="border1">4</td>
</tr>
</table>
</div>
<div style=" top: 13;left: 99;position: absolute;z-index: 1; visibility: show;">Hi</div>
</div>
</BODY>
</HTML>

[ September 13, 2007: Message edited by: babukumar thannasi ]
[ September 13, 2007: Message edited by: Bear Bibeault ]