Go Back   CodingForums.com > :: Server side development > Java and JSP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-14-2010, 07:45 AM   PM User | #1
BubikolRamios
Senior Coder

 
Join Date: Dec 2005
Location: Slovenia
Posts: 1,876
Thanks: 114
Thanked 76 Times in 76 Posts
BubikolRamios is on a distinguished road
equals with escapes

the contence of s is:
Code:
<div style="color: #003362">&nbsp</div>
if I do.

Code:
if s.equals("<div style=\"color: #003362\">&nbsp</div>")
...
it does not work, that is, I get false.
How to handle that ?

Last edited by BubikolRamios; 01-14-2010 at 09:46 AM..
BubikolRamios is offline   Reply With Quote
Old 01-14-2010, 11:28 PM   PM User | #2
cs_student
Regular Coder

 
cs_student's Avatar
 
Join Date: Oct 2009
Location: ~/
Posts: 195
Thanks: 2
Thanked 22 Times in 22 Posts
cs_student is an unknown quantity at this point
Off hand I can not see why the two would not be equal. They have the same case as well.

We know one thing for sure, s is not equal to the string you compared it to. If the string you compared it to is correct, then s must be incorrect.

Maybe trying to print out s and make sure it's in all lower case.


Seeing how/what s is would be really helpful.
__________________
Get GNU/Linux - Play Ogg - Vim
Using Arch Linux x86_64, Xorg + xmonad
cs_student is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:42 AM.


Advertisement
Log in to turn off these ads.