| You are here: DEVPPL ‹ Forum ‹ Programming ‹ Java Forum |
NOTIFICATIONS
|
|
|||||||||||||||
Login |
new line character in JSP
1 post
• Page 1 of 1
0
new line character in JSP
I need to call a method from a java bean which calls the status variable in the JSP page.
However I need to insert the newline character in the JSP Form.
In java bean, I am using the following method:
for(int i=0 ; i < uniqueList.size() ; i++)
{
String tmp=(String)uniqueList.get(i);
temp=temp+tmp+'\n';
}
I wish to display the string in multiple lines according to the number of iterations
But when the variable is called in JSP and I use it in the following manner:
<tr><td><%= status %> </td></tr>
It prints simply as a single string in a single line.
Please help.
However I need to insert the newline character in the JSP Form.
In java bean, I am using the following method:
for(int i=0 ; i < uniqueList.size() ; i++)
{
String tmp=(String)uniqueList.get(i);
temp=temp+tmp+'\n';
}
I wish to display the string in multiple lines according to the number of iterations
But when the variable is called in JSP and I use it in the following manner:
<tr><td><%= status %> </td></tr>
It prints simply as a single string in a single line.
Please help.
- Murliprasad
- Reputation: 0
- Posts: 3
- Joined: Sun May 06, 2007 6:57 am
- Highscores: 0
- Arcade winning challenges: 0
|
|