给个简单的jsp代码你 , 发布到tomcat中访问就行了
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>for循环
<%
String[] str = "HelloWrold".split("");
%>
<%
for(int i = 0; i < str.length; i++){
%>
<%=str[i] %>
<%} %>