• Post Reply Bookmark Topic Watch Topic
  • New Topic

Query on Servlets 2 and 3  RSS feed

 
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have to correctly handle the reversal of thingies like ;touq& which come out reversed as " ?
-Barry
 
village idiot
Bartender
Posts: 1211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I was even aware of the possibility of things like that happening when I did this assignment, so my opinion is no, you don't have to, but since you've brought it up, it might be nice to put some code in there to deal with that kind of situation!
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Carol said:
it might be nice to put some code in there to deal with that kind of situation!

But Carol, there's zillions of them. And I'm very scared of the YAGNI Grue!
 
Chicken Farmer ()
Ranch Hand
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure what the official ruling would be, but it wouldn't take much to test if the string begins with a &, and if it does, substitute that character with &
 
Sheriff
Posts: 9082
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you can find a way around this problem. You shouldn't have to deal with it if you change things right before you print them.
 
Barry Gaunt
Ranch Hand
Posts: 7729
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Think I have got it thanks to Jason. Amplify it that's the thing...
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!