aspose file tools*
The moose likes Servlets and the fly likes Issue with hidden variable in IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Issue with hidden variable in IE" Watch "Issue with hidden variable in IE" New topic
Author

Issue with hidden variable in IE

Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Hi,

We have one data entry application developed using servlets and regular java classes. The application is working fine with Netscape but giving problems with IE on 'some' workstations. With IE, looks like the application is loosing hidden variable value set in client-side javascript. It is not consistent. Sometimes it fails while adding 1st record and sometimes after adding 2-3 records. Anybody faced this type of issue ? I'm wondering whether this is due to some configuration issue. If it is code issue it should fail in Netscape as well as other Machines with IE.

Thanks
Murthy Cherukumilli
Ranch Hand

Joined: Aug 05, 2004
Posts: 45
can you please paste the code.


Thanks<br />Murthy (SCJP 1.4 , SCWCD 1.4)
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360


System is failing at (String)request.getParameterValues("hdnDestination")[0]; How to make sure whether request is still valid when it comes to this point ?
Sonny Gill
Ranch Hand

Joined: Feb 02, 2002
Posts: 1211

So are you getting an ArrayIndexOutOfBoundsException because there are no parameters set with that name?
If the problem is with the javascript code, post the problem in the HTML and Javascript forum with the relevant javascript code, somebody may be able to help.


The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
Dilip kumar
Ranch Hand

Joined: Oct 16, 2000
Posts: 360
Moderator -
Can you please transfer this thread to Javascript forum if you think this issue is related to that forum.

Here is Javascript code. I'm getting alert message everytime. So javascript is setting the value.




I have added few logs to my java code.



With IE I'm getting following results. This error is not consistent. Some times I don't get Null Pointer exception.

DEBUG - In SessionMgr.setCurrentFilters
DEBUG - SessionMgr.setCurrentFilters Null Pointer Exception java.lang.NullPointerException:
DEBUG - SessionMgr.setCurrentFilters hMod :

With Netscape following results

DEBUG - In SessionMgr.setCurrentFilters
DEBUG - SessionMgr.setCurrentFilters hMod : ManualTransaction
[ October 13, 2004: Message edited by: Dilip kumar ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Issue with hidden variable in IE