• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question - build URL using escape characters

 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using a product called displaytag to create tables in my jsp. It is working fine but now I have to create a link in one of the columns that display a requisition number.

My problem is that I am having syntax problems trying to use escape characters to properly create my URL for this link.

Here is what I have in my java code:



What I get when I hover over the link in my JSP is:

http://thr00188b1bb85c:8080/reqs

This is half right but I do can't seem to get the rest of it.

If anyone has any experience with escape characters and can tell me what I'm doing wrong it would be greatly appreciated.

Regards.
 
Bill Shirley
Ranch Hand
Posts: 457
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I suspect you're looking for the HTML & JavaScript forum.
 
Rob Spoor
Sheriff
Pie
Posts: 20610
63
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What's that \" doing after regs? That closes the href attribute!

It should probably be something like this:

The entire URL must be part of the href, so you can't put the closing quote until after entity.
 
Melinda Savoy
Ranch Hand
Posts: 387
Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks so much for the help.

Here is how I made my fix in the event it helps someone else:



Thanks again for all the help.

Regards.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic