用数组处理表单数据之一
来源:互联网 发布:virtualbox安装mac os 编辑:程序博客网 时间:2024/06/05 19:02
在jsp中改写toString()
<jsp:useBean id="simpleBean" scope="request"class="liulixin.facebook.SimpleBean" /><%@ page language="java" contentType="text/html; charset=ISO-8859-1"pageEncoding="ISO-8859-1"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Insert title here</title></head><body><P>colors =<%=toString(simpleBean.getColors())%></body></html><%!public static String toString(String list[]) {return "www.188029.net";}%>
package liulixin.facebook;public class SimpleBean implements java.io.Serializable {private String colors[];public String[] getColors() {return colors;}public void setColors(String[] colors) {this.colors = colors;}/** * Gets an element of the colors property */public String getColors(int index) {return this.colors[index];}/** * Sets an element of the colors property */public void setColors(int index, String value) {this.colors[index] = value;}}在jsp中混杂java代码是一件多么惬意的事呀。什么框架,设计模式,go!
- 用数组处理表单数据之一
- 用数组处理表单数据之二——整数数组型数据
- 四、处理表单数据
- JSP 处理表单数据
- 处理表单数据
- Serlvet处理表单数据
- Servlet处理表单数据
- servlet处理表单数据
- Servlet处理表单数据
- 处理二进制表单数据
- jsp 处理表单数据
- Struts2处理表单数据
- web表单提交数组数据
- thinkphp 获取表单数组数据
- post表单数组数据验证
- jsp Servlet 处理表单数据
- Nodejs 处理表单提交数据
- spring如何处理表单数据
- java.net.InetAddress
- <<Oracle Database 11g & MySQL 5.6开发手册>>一书试读
- Undefined symbols for architecture x86_64: Which architecture should I use?
- C++虚继承的概念
- 直接拿来用!最火的Android开源项目
- 用数组处理表单数据之一
- 我的Java开发学习之旅------>Java ClassLoader解析二(转)
- 反射的例子
- 我的Android进阶之旅------>Android权限参考大全
- 类型的代理类(c++)
- Complete C++11 support in Clang
- 使用splice实现零拷贝复制文件
- LeetCode Combination Sum
- easy-ui 有bug?