Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

getParameter and the URLEncoder  RSS feed

 
Jim Shapt
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,

I'm using a <%=request.getParameter("nameresults")%> to list the names but can't use a </br>, <p> etc because i'm using the URLEncoder.encode to pass the data from the servlet. URLEncoder.encode doesn't work well with HTML so the </br> wont split the names like I want it below. I have examples below of what I want. Any suggestions?


Is there a way to list the names down the page like this? -

RESULTS: Jeff
Becky
Joe
Janice


Instead of like this, look below-


RESULTS: Jeff; Becky; Joe; Janice;



Thanks,

Jim
 
Scott Dunbar
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Report post to moderator
Jim,
It looks like you got an answer to this already. It this sufficient?
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66203
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Jim, I've already asked you once via PM to not post the same question more than once. Your question has already been answered in the copy moved to the HTML forum (and in another forum as Scott pointed out). If you are unhappy with the answers you have received, please reply in the same topic as the original question rather than simply posting the question again.

thanks for your cooperation,
bear
Forum bartender
[ December 15, 2004: Message edited by: Bear Bibeault ]
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!