jyothsna kumari

Ranch Hand
+ Follow
since Jul 21, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by jyothsna kumari

When the first time child window is opened give it a name.When the userclicks on the second document in the main window,open pop up with the same name so that it will be loaded in the first pop up only.

some thing like this
var win=window.open('URL','Name','other parameters')

Jyothsna
Hi All,

The problem is....
I have a parent window from which i open a child window.This child window has got a name.So i am able to close the child window when the parent window gets closed.
Now my problem is when i traverse to second window from parent window after opening a child window and here if i try to close the parent window i am not able to close the child window by accessing it through its name as the relation is lost.

Can anybody suggest me any way by which i can close my child window when parent window is closed.

Thanks,
Jyothsna
Thanks. I will look into it.

Jyothsna
19 years ago
Hi,

Code can be something like this.

<table>

<%for(int i=0;i<=count;i++){%>
<tr><td>data</td></tr>
<%}%>

</table>

Here based on the count which will be a dynamic number you can generate the rows.

Thanks,
Jyothsna
19 years ago
JSP
Hi,

If i understood your question correctly,i think by doing something like this you can get the entire path of the JSP page. From this you can get the physical path.

<script language=javascript>
var myURL = window.location.href+"";
alert(myURL);
</script>

Thanks,
Jyothsna
19 years ago
JSP
Hi,

One way of doing this is, put the code

<script language="javascript">
window.history.forward(1);
</script>

in the page which comes before the actually page from where you don't want the users to go back.

And remember this will not work if javascript is disabled.

Thanks,
Jyothsna
Hi,

I have a requirement such that when ever user hits http://domain/abc.jsp, it should be redirected to https://domain/abc.jsp.

I am using IIS as the webserver and i want to handle this at the server level instead of handling in the code level.Can anyone give me any hint how to do this.

Any help will be greatly appreciated.

Thanks,
Jyothsa
19 years ago
ya, i am sorry.i understood in the otherway.
20 years ago
JSP
Actually sessions expire after a certain amount of time.Even you can set that time.So when your session got expired that session variable will be null.
So in your jsp page you can just check whether the session u want is null or not.If it is null then do whatever you want.
Something like this,
if(session.getAttribute("name")==null){ blah blah..}
Jyothsna
20 years ago
JSP
Hi,
One way to do is to use sessions.You can use session.setAttribute("name","value") in your java class and and can access session.getAttribute("name") in your jsp page.
Thanks,
Jyothsna
20 years ago
JSP
hi Eric,
Thanks for your reply.I think i need to talk to my client regarding this.
Jyothsna
hi all,
My client has a strange requirement.he want's the credit card number to be displayed in such a way that while entering the number,he wants "*" to shown and last 4 digits as it is.
something like this ************4567
For this i have used two seperate input fields for the number.But he wants only one input field and above property.I am not getting any ideas as how to do that.
Please javaranchers help me.
Jyothsna
hi,
As far as i know one cannot edit the data in the list box or combo box.So there is no question in editing the data.
If you are using textbox or textarea then you can do that by specifying the input field as readonly.Something like this,
<input readonly value="text">
In this way you can make the field uneditable.

Jyothsna
hi,
You cannot get the border for a td tag by simply specifying the border color.You have to use the style property.Use this code and adjust the color and width of the border.
<td style="BORDER-RIGHT: orange solid; BORDER-TOP: orange solid; BORDER-LEFT: orange solid; BORDER-BOTTOM: orange solid" width="140" height="24" bgcolor="FFFFFF" ><img src="greyarrow.gif" width="10" height="15"><a href="/index.asp">home</a></td>
Thanks,
Jyothsna
Hi all,
I am doing FTP by using URL connection.while i tried to run it i am getting the following error.
java.net.SocketPermission connect,resolve)
can anybody help me regarding this.
Thanks in advance,
Jyothsna
20 years ago