You are here: DEVPPL Forum Programming Java Forum
NOTIFICATIONS
54.125
MEMBERS
15.697
TOPICS
62.285
POSTS
  562
FLASH GAMES
7.740
TUTORIALS
 

Login

E-mail:
Password:

new line character in JSP

0

Loading

new line character in JSP

Postby Murliprasad » Wed May 09, 2007 7:08 am

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.
Murliprasad
 
Reputation: 0
Posts: 3
Joined: Sun May 06, 2007 6:57 am
Highscores: 0
Arcade winning challenges: 0

new line character in JSP - Sponsored results

Sponsored results

Login to get rid of ads

 

^ Back to Top