This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Hands On Software Engineering with Python and have Brian Allbey on-line!
See this thread for details.
Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!

Ashutosh Uprety

Ranch Hand
+ Follow
since Nov 30, 2000
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ashutosh Uprety

It works! I had tried the similar way, but missed the setTimeout funda.

Thanks !
instead of frames, if you use <DIV> then u could try it out this way:

use DIV instead of frames
put ur anchor also within a DIV

then onmouseover of anchor, set the Z-index of the anchor div to higher than the Z-INDEX of the other divs(the ones u used instead of frames).
I need to pass an xml string from parent window to child window.

My restrictions
1. It is a and not a modalDialog, so i cannot pass arguments
2. I cannot use querystring due to security issues.

Can anybody tell me a way to achieve this.

xml is of the format <NODE CODE="somecode" VALUE="somevalue" />

I tried to do this as below but it failed

handle ="mypage.aspx");
var objHdn = handle.document.createElement("INPUT");
objHdn.type = "hidden"; = "hdnXenon";
objHdn.value = g_XenonXml;

another way I tried was:
handle.document.write("<script language=javascript>var xml="+xml+"</script>");

but when I did view source, the above script statement had overwritten everything else in mypage.aspx
yes bodie,
thats exactly what happens.
c:\test is of length 6 and not 7.
it seems that nothing can be done if the string has been coded wrongly. till now i haven't been able to figure out a way to deal with this.
would welcome more brains to enter into this unseemingly tricky problem.

Hi Bodie,
if it was a "\\" i wouldn't have wanted to bother any of u guys. But thats the problem.
the string can come from anywhere i.e. xmlfile or array.
i thought of another way, but dont seem to be getting the right method method for it.
It goes like this.
In BASIC, there is a function right() which counts the index from the right side.
If there is any such method in javascript/jscript then we could use the following logic. Below I will call this method "rightIndexOf()" for my sake
myString = "a/bc/def/34/ghi"
stringLength = myString.length
for(i=0; i < stringLength; i++)
if(myString.indexOf(i) == myString.rightIndexOf(stringLength - (i+1)))
newString += myString.charAt(i);
it means that the character at indexOf(i) is '\';
newString += '/'
The problem is that I am not able to find any method in javascript/jscript which gives this "rightIndexOf()" type of functionality.
If anyone has any ideas, pls do let me know
I want to replaces backslashes from a string.
the string
must be changed to
substring,substr,charAt ... etc are not working.
How to do it.
The string is a file path coming from an xml file.
I am trying to use IIS5.0 with Tomcat3.2 to server my JSPs.
I have configured it properly and can see my JSP pages properly.
But it is not able to recognize any file other than a .jsp
I am not able to view any html pages nor any images, only jsp pages.
Can anyone tell me what the problem is.
I have configured IIS for tomcat by the procedure described in tomcat-iis-howto.html
My Env: Win2000 Prof edition
17 years ago
i had recently in a proj with platform of AIX/win9x/NT. Things worked just fine for me.
I think u are missing something ... have u got which will be used for oracle8i or for older versions of oracle ??
17 years ago
surprising ... no one wrote anything about hashCode() method of java.lang.object class.
Use this. This is a one way method to encrypt ur password.
Save the password in the database by doing
string newPswd = pswd.hashCode();
then when u want to authenticate the logger, just compare this with the hash-coded value of the password he enters when he logs in. The advantages of hashCode() method are
1) Even the database administrator will not know the exact password as he can only see the encrypted format.
2) It cannot be decrypted. Chances a one in a millon ... or even more bleak .. and i am sure u r not writing a software for InterPol .. hence u may rely on its security.
17 years ago
there are a pretty good no. of decompilers available.
they can convert class files back to understandable but a bit different java code. Most of ur variable names will also be retained, though in some cases, it will use its own nomenclature.
Also see obfuscators which are used to complicate the code beyond understandable limits.
17 years ago
Hi Wayne,
Nothing seems to work. I used <Files>, <FileMatch> with <Limit>, <LimitExcept> tags , but the "dot" still plays havoc.
Things work fine when using only Tomcat, but with apache it is bombing
17 years ago
Hi Wayne,
I have tried <Files>, <FileMatch>,<Limit>,<LimitExcept>... but nothing seems to work.
Either it is stopping the jsp itself, or it is showing the code.
What I can make out is that it is not parsing the "dot" properly, and is a bug in Apache, because things work properly with only tomcat.
Any more inputs will be welcome.
17 years ago
If all u want to do is to give a "can log out anyone" permission to administrator, then here is what u can do ...
1. create a temp table with userId, jsessionid,usertype(admin or normal)
2. whenever anyone logs in then populate temp table with above info.
3. allow the admin to view whoever is logged on, by showing a list of users in the temp table.
4. allow him to delete any record from this temp table
5. for every agent user, before entering any page, check if the session is available in the temp table. If jsessionid is not available, then log him out.
gotcha !!
17 years ago
ur jsp is giving a nosuchmethoderror.
it means that there is something wrong with some method u r calling.
look into the exception once again. it will give some more details in the lower part of the exception which seems to be a repetition of the top part. The exact error can be found out from there.
perhaps u could paste the whole exception page and then we can figure out something.
17 years ago
There seems to be a bug in Apache.
I am using apache+tomcat config on win95.
If I put a dot(".") after the name of the jsp in the browser location bar, then the whole code of my jsp is visible on the browser.
if my jsp is "security.jsp" in abc directory, then if I type
"http://servername/abc/security.jsp." on the browser, the whole code of security.jsp is visible on the browser. How should I stop this. I am able to restrict access to the directory listing, but if anyone knows the full path, then the whole code is shown.
Can anyone suggest something to stop this.

[This message has been edited by Ashutosh Uprety (edited July 17, 2001).]
17 years ago