It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Java Forum

new line character in JSP

new line character in JSP

Postby murliprasad on Wed May 09, 2007 6: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
 
Posts: 3
Joined: Sun May 06, 2007 5:57 am

Who is online

Users browsing this forum: No registered users and 1 guest