☆冷情か 2021-06-04 15:59 采纳率: 0%
浏览 9

requestScope对象

请问jsp打印出来的requestScope对象里面的javax.servlet.forward.query_string值代表什么,如何获取在用JavaScript获取里面的key-value

打印出来的requestScope部分:

'{javax.servlet.forward.context_path=/SETTLEMENT, javax.servlet.forward.servlet_path=/dsf/stat/error, javax.servlet.forward.mapping=org.apache.catalina.core.ApplicationMappingImpl@c55a92a, org.springframework.web.context.request.async.WebAsyncManager.WEB_ASYNC_MANAGER=org.springframework.web.context.request.async.WebAsyncManager@56a2a0a3, CharacterEncodingFilter.FILTERED=true, org.springframework.web.servlet.HandlerMapping.bestMatchingHandler=com.ums.settlement.dsf.controller.StatController#errorList(Model, HttpServletRequest), org.springframework.web.servlet.DispatcherServlet.CONTEXT=WebApplicationContext for namespace 'springmvc-servlet', started on Fri Jun 04 15:36:04 CST 2021, parent: Root WebApplicationContext, javax.servlet.jsp.jstl.fmt.localizationContext.request=org.springframework.web.servlet.support.JstlUtils$SpringLocalizationContext@638eee1f, javax.servlet.forward.request_uri=/SETTLEMENT/dsf/stat/error, org.springframework.web.servlet.HandlerMapping.lookupPath=/dsf/stat/error, org.springframework.web.servlet.DispatcherServlet.THEME_SOURCE=WebApplicationContext for namespace 'springmvc-servlet', started on Fri Jun 04 15:36:04 CST 2021, parent: Root WebApplicationContext, org.springframework.web.servlet.DispatcherServlet.LOCALE_RESOLVER=org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver@4bc57b97, 
javax.servlet.forward.query_string=OutChlName=%25E5%258C%2597%25E4%25BA%25AC%25E9%2593%25B6%25E8%25A1%258C&FollwDate=&FollwStatus=&SettleDate=2016-01-01&SettleDate1=2021-01-01, org.springframework.web.servlet.HandlerMapping.bestMatchingPattern=/dsf/stat/error, org.springframework.web.servlet.DispatcherServlet.OUTPUT_FLASH_MAP=FlashMap [attributes={}, targetRequestPath=null, targetRequestParams={}], org.apache.logging.log4j.web.Log4jServletFilter.FILTERED=true, org.springframework.web.servlet.HandlerMapping.pathWithinHandlerMapping=/dsf/stat/error, org.springframework.web.servlet.DispatcherServlet.FLASH_MAP_MANAGER=org.springframework.web.servlet.support.SessionFlashMapManager@41032f92, org.springframework.web.servlet.HandlerMapping.uriTemplateVariables={}, 
SettleDate=123456, org.springframework.web.servlet.DispatcherServlet.THEME_RESOLVER=org.springframework.web.servlet.theme.FixedThemeResolver@2e43ca51, org.springframework.core.convert.ConversionService=ConversionService converters =

尝试 用以下方法,但是获取不到值

var SettleDate1=${requestScope.SettleDate1};

  • 写回答

3条回答 默认 最新

  • 关注

    requestScope主要是值范围,page,request,session,application

    评论

报告相同问题?

悬赏问题

  • ¥15 删除虚拟显示器驱动 删除所有 Xorg 配置文件 删除显示器缓存文件 重启系统 可是依旧无法退出虚拟显示器
  • ¥15 vscode程序一直报同样的错,如何解决?
  • ¥15 关于使用unity中遇到的问题
  • ¥15 开放世界如何写线性关卡的用例(类似原神)
  • ¥15 关于并联谐振电磁感应加热
  • ¥60 请查询全国几个煤炭大省近十年的煤炭铁路及公路的货物周转量
  • ¥15 请帮我看看我这道c语言题到底漏了哪种情况吧!
  • ¥66 如何制作支付宝扫码跳转到发红包界面
  • ¥15 pnpm 下载element-plus
  • ¥15 解决编写PyDracula时遇到的问题