Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

I need to put a newlin in jsp:expression

 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JSP using an arrayList. I am using:
<jsp:expression>
response.getAttribute("list")
</jsp:expression>
I want to put a line break between each entity of the "list". I get the information but it is all on one line. I have tried to concatenate a \n. and I tried a <br />
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<jsp:expression>???

You're not writing JSPs using the XML document format, are you?
 
Donna Bachner
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found my problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic