求助有关jstl的转换
<%@ page contentType="text/html;charset=gb2312" %><%@ page import="java.util.*" %>
<HTML>
<HEAD>
<TITLE>聊天室----接受消息--</TITLE>
<style>
body{font-size:15px}
</style>
</HEAD>
<meta http-equiv =refresh content= "5; rl=#">
<%
String name = (String) session.getAttribute("userid");
List<String> chatwords =(List<String>) application.getAttribute("chatwords");
//获取聊天信息
%>
<BODY bgColor=#99CCFF >
<font color=#669900 size=2 >欢迎
<FONT COLOR=#660066 size=4> <I><B><%= name %></B></I> </FONT>光临聊天室,请注意文明聊天!</font><BR>
<HR>
<% if (chatwords!=null) { // 显示信息
Object[] arraychatwords=chatwords.toArray();
int wordslen=arraychatwords.length;
for (int i=wordslen-1;i>=0;i--) {
//从信息中取出谈话对象
//System.out.println(" "+i+" "+arraychatwords[i]);
int index=((String)arraychatwords[i]).indexOf("####");
//System.out.println(index);
String sender=((String)arraychatwords[i]).substring(0,index);
String temp=((String)arraychatwords[i]).substring(index+4);
index=temp.indexOf("####");
String talker=temp.substring(0,index);
System.out.println(name);
System.out.println(sender+" is talking to "+ talker);
//跳过不是对当前用户说的话
System.out.println(talker.equals("所有人")+" "+talker.equals(name)+" "+sender.equals("xbHuang"));
if(!(talker.equals("所有人")||talker.equals(name)||sender.equals(name))) continue;
String message=temp.substring(index+4);
System.out.println(message);
%>
<font size=2> <%= message %></font>
<% }
}
%>
有没有高手帮忙将该页面转换为jstl页面 jstl
补充:Java , Web 开发