Hai man,
what you gave me the coding also i tried but I was unable to get the output can you please help me.. its urgent..
thanks for your help..
here I am sending my code again..
<%@ page language="java" import="java.lang.*,java.util.*" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html locale="true">
<head>
<html:base />
<LINK href="../../stylesheet/Pagination.css" rel="styleSheet" type="text/css">
<LINK href="../../stylesheet/ComplexDataTable.css" rel="styleSheet" type="text/css">
<title>Capace</title>
<meta name = "Generator" content = "Easy Struts Xslt generator for Eclipse (
http://easystruts.sf.net).">
<SCRIPT language="JavaScript" >
var areaGlobalMaxLength=10;
function onLoad()
{
var area = document.getElementById("longDataValue");
//retrives windows args
MyArgs = window.dialogArguments;
//Updates label parmaters
var label = document.getElementById("LABEL");
label.innerHTML=MyArgs[2];
//Updates max size of the description.
areaGlobalMaxLength=MyArgs[3];
var value=MyArgs[0];
area.value= unescape(value);
var isEditable=MyArgs[1];
if(isEditable=='0'){
var tds=document.getElementById("buttons");
/*var button = document.getElementById("validateB");
button.src="../../images/Blank.png";
button.onclick="void('');";*/
tds.innerHTML='<html:image onclick="onCancel();" border="0" src="../../images/Cancel.png"/>';
area.disabled=true;
}
function onValidate()
{
var area = document.getElementById("longDataValue");
MyArgs=new Array(escape(area.value));
window.returnValue = MyArgs;
onCancel();
}
var uagent = navigator.userAgent;
var appver = navigator.appVersion.substring(0,1);
function showTip(ctrl, tiptext) {
var tipdiv;
if (uagent.indexOf("MSIE") != -1) {
if (appver > 3) {
// in IE all we need to do is set the "title" attribute
ctrl.title = tiptext;
}
} else {
if ((uagent.indexOf("Mozilla") != -1) && (appver > 3)) {
tipdiv = document.layers["tooltip"];
// set the tooltip text
tipdiv.document.open();
tipdiv.document.write("<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 bordercolor=black><TR><TD BGCOLOR=FFFFCC>");
tipdiv.document.write("<FONT FACE=Verdana, Arial, Helvetica SIZE=-2>");
tipdiv.document.write(tiptext);
tipdiv.document.write("</FONT>");
tipdiv.document.write("</TD></TR></TABLE>");
tipdiv.document.close();
// set the tooltip location and show it
tipdiv.top = ctrl.y + 20;
tipdiv.left = ctrl.x + 10;
tipdiv.visibility = "show";
}
}
}
function hideTip() {
if ((uagent.indexOf("MSIE") == -1) && (uagent.indexOf("Mozilla") != -1) && (appver > 3)) {
// only do this for NN4+
document.layers["tooltip"].visibility = "hidden";
}
}
function onCancel()
{
this.close();
}
</SCRIPT>
<SCRIPT language="JavaScript" src="../../js/common.js">
</SCRIPT>
</head>
<body onload="onLoad()" class="CDT">
<div id="tooltip"></div>
<div align="center">
<TABLE align="center" class="POPUP">
<tr>
<td Id="LABEL" class="POPUP">
</td>
</tr>
<tr>
<td>
<TEXTAREA id="longDataValue" rows="5" cols="45" class="POPUP" onkeydown="areaTextCounter(this)" onkeyup="areaTextCounter(this);">
</TEXTAREA>
</td>
</tr>
<tr>
<td align="center" id="buttons">
<A HREF="#" onMouseOver="showTip(this, 'Validate')" onMouseOut="hideTip()" onclick="onValidate();"> <IMG id="validationB" src="../../images/Validate.png" border="0"/></A>
<A HREF="#" onMouseOver="showTip(this, 'Cancel')" onMouseOut="hideTip()" onclick="onCancel();"><html:image src="../../images/Cancel.png" border="0"/></A>
</td>
</tr>
</TABLE>
</div>
</body>
</html:html>