开发者

How to create dynamic vectors in jsp?

开发者 https://www.devze.com 2023-03-28 16:41 出处:网络
Is there any way to cre开发者_开发百科ate dynamic vectors using jsp. Advance thanks to you all.Like this:

Is there any way to cre开发者_开发百科ate dynamic vectors using jsp. Advance thanks to you all.


Like this:

<%@ page import="java.util.Vector" language="java" %>
<%
Vector vc=new Vector();
%>

<html>
<body>
    <%
     int i=0;
     for(i=0;i<vc.size();i++)
     {
      vc.add("vector" + i);
     }
    %>
</body>
</html>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号