<%! // global sidebar variables
// red, yellow, green lights
/**
* 格式化字符串
* @param content 需格式的字符串
* @return 格式成功的字符串
*/
public static String formatString(String content){
if(content == null)
{
return "";
}
String makeContent=new String();
StringTokenizer strToken=new StringTokenizer(content,"/n");
while(strToken.hasMoreTokens())
{
makeContent=makeContent+"<br>"+strToken.nextToken();
}
return makeContent;
}
%>
// red, yellow, green lights
/**
* 格式化字符串
* @param content 需格式的字符串
* @return 格式成功的字符串
*/
public static String formatString(String content){
if(content == null)
{
return "";
}
String makeContent=new String();
StringTokenizer strToken=new StringTokenizer(content,"/n");
while(strToken.hasMoreTokens())
{
makeContent=makeContent+"<br>"+strToken.nextToken();
}
return makeContent;
}
%>