sandhya sri

Greenhorn
+ Follow
since Feb 11, 2009
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
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by sandhya sri

pfa

<html>
<head>
<SCRIPT type="text/javascript" src="js/jquery-1.4.2.min.js"></SCRIPT>
<SCRIPT type="text/javascript" src="js/jquery.blockUI.js"></SCRIPT>
<script type="text/javascript">


var LOADINGIMAGE = 'HELLO WORLD';
function callblock(){
var el = document.createElement("iframe");
el.setAttribute('id', 'blockUIiframe');
el.height = "100%";
el.width = "100%";
el.scrolling = "yes";
if(document.getElementById("showBlockUI")!=null){
document.getElementById("showBlockUI").appendChild(el);
el.setAttribute('src', "file:///C://Users/Shirisha/Desktop/sample_abc/sample/popup.html");


$.blockUI({message: $('#blockUIiframe')});
}
}

</script>

</head>
<body>
<div id="showBlockUI_Parent" height="100%">
<div id="showBlockUI"></div>
</div>

<img src="Nice.jpg" onclick="javascript:callblock()"/>

</body>
</html>

popup
-------
<html>
<head>
<style type="text/css">
#tutors-popup {
position: fixed;
top: 0;
right: 0;
}
</style>
<script type="text/javascript">
function openPopup()
{

myWindow=window.open('','','width=800,height=600')
myWindow.document.write("<html><head></head><body>promt user and close</body></html>")
myWindow.focus();
}
</script>
</head>
<body >
<div id="tutors-popup">
<img alight="right" src="close_button.png" id="fullPic" onclick="openPopup();"/>
</div>

<div>test pop up page 1 </div>




</body>
</html>

By Clicking on an image I am opening one jsp as a seperate window(popup1). When I close this popup window by clicking on window CLOSE button, one more window should open i.e., popup2. In this case popup window should not close.

for that I am using follwing code, but its not working...

<HTML>
<HEAD>

</HEAD>

<body onLoad="check(false);" onUnLoad="check(true);">


<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#A3D1FF" >
<form method="post" name="theForm">

<tr>
<td colspan=3 width="100%" height="30" align='<%=leftAlign%>'><span class="darkbluefont13"><strong>   </strong></span></td>
</tr>

<tr>
<td width="10%"> </td>

<% String s = "siebelcrm/EBI/"+campId+"/offer.html";%>
<td width="60%" align="center" style="padding:0px 0px 0px 12px"><jsp:include page="<%=s%>"/> </td>
</tr></table></td>
<td width="10%"> </td>

</tr>
<tr height="10%"><td colspan=3 width="100%" height="30" align='center'><span class="darkbluefont13"><strong>   </strong></span></td></tr>
<tr>
<td width="2%" align='center'> </td>
<td align="center">
<table border="0"><tr>
<td>
<a href="#" onclick="check(false);"><img src="apply.gif" alt="banner" border="0"></a>   
<a href="#" onclick="check(false);"></a>   
</td>
</tr></table></td>
</tr>
<tr>
<td colspan=3 width="100%" height="30" align='<%=leftAlign%>'><span class="darkbluefont13"><strong>   </strong></span></td>
</tr>


</form>
</table>

<%
}

%>


<script type="text/javascript" language="JavaScript">
var flag;
function check(f){

flag=f;

}
if(flag){
window.onbeforeunload = confirmExit;
}

function confirmExit()
{

child2=
window.open('enbdCampaignOffer2.jsp?campaignid=<%=campId%>&targetid=<%=targetId%>&contid=<%=contactId%>&treatid=<%=treatId%>','call','dependent=no,directories=no,location=no,menubar=no,status=no,titlebar=no,toolbar=no,scrollbars=yes,resizable=yes,hotkeys=no,width=500,height=110');

return child2;
}

</script>
</body>
</html>


Please suggest me correct approch to meet my requirement.

Thanks in advance.
In struts how can i validate the values filled into the text boxes or else using DynaValidatorForm,without using javascript. Actually with javascript it is working perfect but not without javascript, and i want without javascript?
12 years ago
Hi,

Thanks in advance.

In my application

java.io.File file = new java.io.File("/home/aaa/Desktop","party.txt" );

this is giving
Caused by: java.io.FileNotFoundException: home/aaaa/Desktop/party.txt (No such file or directory).

even the file exists that particular folder.

What is the solution for this?
13 years ago
How to avoid cross site script in java web application?
Actually In my application while running the code related to insert and delete on xxx table, another member clicks on some service which also related to this xxx table for selection from this xxx table.
that is my scenario.

but what my doubt is, for the same scenario i can get lock wait timeout exception.But y I got this Exception?
My application is running since one and half year in live but this is the first time I got this exception.
i am getting Can't find record in 'tablename' error. I am using MySql.
What is cause for this error?
As I know if we insert and delete from a table while selecting from the same table, We can get this error.
but what is my doubt is we also get 'lock wait time out exception'.

Can any one clarify this.

In advance thanks.
i am getting Can't find record in 'tablename' error. I am using MySql.
What is cause for this error?
As I know if we insert and delete from a table while selecting from the same table, We can get this error.
but what is my doubt is we also get 'lock wait time out exception'.

Can any one clarify this.

In advance thanks.
If I use two parameters,I need to give '/' as seperator between thoes two parametaers ,but my requirement is I have to append a string after the Id with "+",that's why I hd taken it as single parameter.


14 years ago
I have an url like

http://details/12345

and what I need to do is ,I have to append a string to that url like

http://details/12345+example_string

for this I wrote a outbound-rule and rule in urlrewrite.xml

<outbound-rule>
<from>/details.do(.*)Id=([0-9A-Za-z_+]+)</from>
<to>/details/$2</to>
</outbound-rule>

<rule>
<from>/details/([0-9A-Za-z_+]+)</from>
<to>/details.do?reviewId=$1</to>
</rule>


but when I click on specified link in my application which go for this url,

http:///details/12345%2Bexample_string("+" is replaced by %2B)

but I need url exactly like

http://details/12345+example_string

because I need to seperate 12345 and "example_string" again in my action class with seperator "+"

but Im not able to do this.

can anyone help me in resolving this issue!!!
14 years ago

Prashant Langade wrote:Check this out..

http://tuckey.org/urlrewrite/manual/3.0/

Hope this helps you..




Thanks a lot
14 years ago
Can anyone give the details about url rewrite filter?
14 years ago