欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  web前端

标签,后台传过来的是String数组,前台出现的是内存地址。求解。_html/css_WEB-ITnose

程序员文章站 2022-04-26 22:17:44
...
String[] header = new String[]{"产品分类","微生物污染","食品添加剂超标","污染物",					"非食用添加物","农兽残","生物毒素污染","转基因成分","辐照","禁限用物质",					"小计","其他不合格项目","包装不合格","标签不合格","有害生物","品质",					"证书不合格","总计"};


${headerItem}


回复讨论(解决方案)

前台输出的是一串内存地址:

javax.servlet.jsp.el.ImplicitObjectELResolver$ScopeMap$ScopeEntry@d1c47ede

换个变量名字,别用header