File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes HTML entities and 6u24 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "HTML entities and 6u24" Watch "HTML entities and 6u24" New topic
Author

HTML entities and 6u24

Kacper Pudlik
Greenhorn

Joined: Mar 04, 2011
Posts: 3
Hey folks,

We have a software (applets) that was working for some long time w/o any issues.
During last update from 22 to 24 something up and our pages start renders & as a & amp;

.....
as our development team used some hacks like .substring (position of &) a lot of our features went down...
What happend during that update that our browsers rendered it wrong?

What is our options beside:
downgrading to 22
fix code to read correctly & as a & amp; or &

which will involve less work ;-) Of course points me if i am wrong!!

we work on:
1.6_24
msie 6.0 / 8.0
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

Welcome to the Ranch.

Are you absolutely sure that this change in behaviour happened because of your update from Java SE 6 update 22 to update 24? Are you certain that it can't be because there was some change in your software or some change in the configuration somewhere? Is your start page a HTML page? Are you sure that there's not some error in the HTML?

It sounds very unlikely to me that an update of the Java version would cause a change like this.

Without knowing any details about your software it's very hard to give you a specific answer to this question.

Can you show a short piece of code that works correctly on u22 and fails on u24?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41586
    
  54
I'd advise to generalize the code so that it treats both & and & correctly. The more tolerant code is to variations in its input, the more robust it is: Robustness Principle.


Ping & DNS - my free Android networking tools app
Kacper Pudlik
Greenhorn

Joined: Mar 04, 2011
Posts: 3
Jesper,
Its very old application and it worked for every update w/o updating it's code. It throws a lot of exceptions from awt.focus to NPE in some various places. It will be a problem for us to fix that error by enhancing sources. As it worked for such a long time... we didn't change sources / configuration / physical setup ... we are quite sure it's between java and MSIE 8.0...

Jesper for me it was unbelievable too but it happend and I have to solve it :-) Thank you for v welcome

Ulf, Yeah but i have no possibility to view /change the code of application.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14114
    
  16

In your first post you mentioned that one of the option was to fix the code, but now you say you don't have the possibility to change the code?

Then downgrading to u22 would still be an option. You could try that on one system and see if the problem goes away.
Kacper Pudlik
Greenhorn

Joined: Mar 04, 2011
Posts: 3
@Jesper,

I'm not in a team of developer that's why I wrote to Ulf that i have no chance to work on code of application.
I have noticed the issue with encoding & into & amp; by firebug (which is extension for firefox).

Right now we have change our code to be more sensitive to input - that's what i heard.

On other hand i'm pretty sure that there will be some more issues (other places in our internal software...) with it. That's why I'm looking for any catch that could help.

result: semi-resolved
We have refreshed our code to be more sensitive to input.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML entities and 6u24