Quantcast
Channel: VBForums - Java
Viewing all articles
Browse latest Browse all 54

this.getClass().getName() and underscore

$
0
0
Hi

Easy one for you but I seem to be hitting a brick wall on finding the answer...

running the code :
Code:

String s = this.getClass().getName();
However this is running from a jsp file and I've named it with an underscore. Which means that the underscore seems to be converted to _005f (possibly with an escape, I'm looking at it once it is in the page as a link...)

Questions:
- why does it do this?
- can i confirm somehow whether there is an escape code in the returned string and it's just not showing properly..?
- how to fix it (preferably without third party plug-ins (eg commons) ) ?

Viewing all articles
Browse latest Browse all 54

Trending Articles