jsp取值数字太长
springmvc传值到html页面,如何取值?
springmvc传值到html页面,如何取值?
public ModelAndView getGraphs(HttpServletRequest request,HttpServletResponse response) throws Exception{ttModelAndView mav new ModelAndView()ttReturn ret new Return(true)ttString name (name)tttry {((name))(success)tt} catch (Exception me) {tttlog.eLog(me)(false).setMessage(())tt}(ret
Controller中:
@Controller
@RequestMapping(value)
public class IndexController {
@RequestMapping(value /trackStationInfo/{trackId})
public String getTrackStation(Model model, @PathVariable String trackId){
(trackId
JSP中EL语法的运算符.和[]有什么区别?
jsp中获取数组对象用[],获取对象属性用.1)语法结构 ${expression}2)[]与.运算符 EL 提供.和[]两种运算符来存取数据。 当要存取的属性名称中包含一些特殊字符,如.或?等并非字母或数字的符号,就一定要使用 []。例如: ${}应当改为${user[