纷纭教育
您的当前位置:首页使用session在jsp页面之间传递数组,用于实现全局变量的效果

使用session在jsp页面之间传递数组,用于实现全局变量的效果

来源:纷纭教育

使用session在jsp页面之间传递数组:
发送数据的jsp页面:
int [][] form_number=new int[4][4];
session.setAttribute("se_form_number",form_number);
接收数据的jsp页面:
int [][] data  =  (int[][])session.getAttribute("se_form_number");

转载于:https://www.cnblogs.com/ming-4/p/11555946.html

因篇幅问题不能全部显示,请点此查看更多更全内容