Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Jersey InjectLink  RSS feed

 
Greg Fox
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm running into a problem with using Jersey @InjectLink. I'm using the following injection which works except for the fact that my '?' gets converted to "%3F" which causes a 404 if the resulting link is used.

@InjectLink(value = "${resource.uriInfo.path}?expand={expand}&offset={offset}&limit={limit}", rel = "self", style = InjectLink.Style.ABSOLUTE)

Is there any way to escape the '?' so that it doesn't get encoded on me?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!