怎么把MAP里的值保存到一个对象里,我对象里有很多属性
map获取方法如下
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List<FileItem> items = upload.parseRequest(httpRequest);
Map<String, String> parameters = new HashMap<String, String>();
for(FileItem fi :items){
if(fi.isFormField()){//文本参数类型
String name = fi.getFieldName();
String value = fi.getString();
parameters.put(name, value);
我怎么知道map里的值对应我的那个属性?hashmap
map获取方法如下
FileItemFactory factory = new DiskFileItemFactory();
ServletFileUpload upload = new ServletFileUpload(factory);
List<FileItem> items = upload.parseRequest(httpRequest);
Map<String, String> parameters = new HashMap<String, String>();
for(FileItem fi :items){
if(fi.isFormField()){//文本参数类型
String name = fi.getFieldName();
String value = fi.getString();
parameters.put(name, value);
我怎么知道map里的值对应我的那个属性?hashmap
解决方案 »
- Ext 添加监听的三种方式
- JPA Hibernate整合错误~
- hibernate保存外键问
- MyEclipse6与glassfish v2 集成的问题
- struts国际化中的application.propertie问题
- 谁能帮我写个myeclipse +struts+hibernate的例子啊!急!急!急!
- Tomcat 4.1 中能运行的程序为什么在tomcat5.0.28中却有String index out of range: -1错误?
- 求JBulider的注册号!通过就给分啊!谢谢XDJM了
- jbuilder+weblogic,利用jspsmartupload实现文件上传,jspsmartupload放在什么地方?
- java的dom解析xml时如果包含url的dtd时解析出错
- jbpm5 学习
- 菜鸟问题 Hibernate.STRING 类型出错
private Map<Object, Object> map;
}