EL表达式问题导致页面报500,取值需要加用${requestScope.id}的形式才正常

Error 500--Internal Server Error

java.lang.NullPointerException
at com.sun.faces.context.ApplicationMap.get(ApplicationMap.java:97)
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:247)
at com.sun.faces.application.ApplicationAssociate.getCurrentInstance(ApplicationAssociate.java:277)
at com.sun.faces.el.ManagedBeanELResolver.getBeanManager(ManagedBeanELResolver.java:228)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:235)
at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
at com.sun.faces.el.ChainTypeCompositeELResolver.getValue(ChainTypeCompositeELResolver.java:94)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)
at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
at weblogic.servlet.jsp.ELHelper.evaluate(ELHelper.java:32)
at jsp_servlet._web_45_inf._jsp._shipmgmt.__shipmodapprv_list._jspService(__shipmodapprv_list.java:89)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)
at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:564)
at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)
at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at com.yunda.app.util.platform.filter.LoginAndAuthFilter.doFilter(LoginAndAuthFilter.java:156)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:167)
at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

本地开发使用tomcat,通过${id}取值是没有任何问题,但是上uat之后服务器用的是welogic通过${id}的形式取值页面会报空指针,需要用${requestScope.id}的方式取值才不会报错,搞不懂是因为什么导致的

0

3个回答

requestScope是作用域 啊,是从里面取得,不然直接写id取不到呀

0
qq_43037983
qq_43037983 回复weixin_39808420: page里面取到的值是空,说明page里面是没有这个值的,那我${id}不是应该默认从request作用域取值吗?
10 个月之前 回复
qq_43037983
qq_43037983 回复weixin_39808420: 好的,我看下
10 个月之前 回复
weixin_39808420
MR-----zhang 回复weixin_39808420: 你看是不是直接从page里面取到什么别的值了
10 个月之前 回复
weixin_39808420
MR-----zhang 回复qq_43037983: 在web开发中有四个作用域分别为 page,request,session,application ${id}表示会从作用域中取得数据。 如果没有在EL表达式中指明它会默认的从小到大寻取。 分别为page-request-session-application. ${requestScope.id}则表示为在request作用域中取的参数为id的值。 ${param.id}则表示 由客户端传送过来的,参数名为id的值。 相当于:request.getParamter("id");
10 个月之前 回复
qq_43037983
qq_43037983 我本地就可以的呀,而且${id}这种写法很常见呀
10 个月之前 回复

java.lang.NullPointerException 都空指针了。

0
qq_43037983
qq_43037983 EL表达式影响的,${id}会报,id前面加requestScopre.就不会,不明白什么原因
10 个月之前 回复

<[ServletContext@1611250164[app:dms module:dms path:null spec-version:3.0]] Root cause of ServletException.
java.lang.NullPointerException
at com.sun.faces.context.ApplicationMap.get(ApplicationMap.java:97)
at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:247)
at com.sun.faces.application.ApplicationAssociate.getCurrentInstance(ApplicationAssociate.java:277)
at com.sun.faces.el.ManagedBeanELResolver.getBeanManager(ManagedBeanELResolver.java:228)
at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:235)
Truncated. see log file for complete stacktrace

这是weblogic日志
还有,页面不会一直报500,刷新10次可能会有几次报错

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
EL表达式问题导致页面报500,取值需要加用$requestScope.id的形式才正常
Error 500--Internal Server Errorrnrnrnjava.lang.NullPointerExceptionrn at com.sun.faces.context.ApplicationMap.get(ApplicationMap.java:97)rn at com.sun.faces.application.ApplicationAssociate.getInstance(ApplicationAssociate.java:247)rn at com.sun.faces.application.ApplicationAssociate.getCurrentInstance(ApplicationAssociate.java:277)rn at com.sun.faces.el.ManagedBeanELResolver.getBeanManager(ManagedBeanELResolver.java:228)rn at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:235)rn at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)rn at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)rn at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)rn at com.sun.faces.el.ChainTypeCompositeELResolver.getValue(ChainTypeCompositeELResolver.java:94)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)rn at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:188)rn at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:103)rn at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)rn at weblogic.servlet.jsp.ELHelper.evaluate(ELHelper.java:32)rn at jsp_servlet._web_45_inf._jsp._shipmgmt.__shipmodapprv_list._jspService(__shipmodapprv_list.java:89)rn at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:221)rn at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:564)rn at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:263)rn at org.springframework.web.servlet.view.InternalResourceView.renderMergedOutputModel(InternalResourceView.java:238)rn at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)rn at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)rn at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)rn at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)rn at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)rn at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:953)rn at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:844)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)rn at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:829)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:242)rn at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:216)rn at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:132)rn at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:338)rn at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)rn at com.yunda.app.util.platform.filter.LoginAndAuthFilter.doFilter(LoginAndAuthFilter.java:156)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)rn at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:167)rn at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80)rn at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)rn at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)rn at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88)rn at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)rn at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:74)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3288)rn at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3254)rn at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)rn at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)rn at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)rn at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2163)rn at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2089)rn at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2074)rn at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1513)rn at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)rn at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)rn at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)rnrn本地开发使用tomcat,通过$id取值是没有任何问题,但是上uat之后服务器用的是welogic通过$id的形式取值页面会报空指针,需要用$requestScope.id的方式取值才不会报错,搞不懂是因为什么导致的
EL表达式取值问题 ${??}
很多时候页面传值,习惯用EL表达式来解决,快捷方便,但是EL表达式有时候是有局限性的,例如你传的值,如果接口分多处调用,有的是传值的,而有的直接为空,那么你传递的值也就不存在了,此时在页面用EL表达式来取值的时候,就会报出页面错误。 此处的案例是工作中用到的一个跳转页面。初次访问时是不需传值的。而有重新发起交接要求时共用此跳转去相同的页面,那么两处调用会有值是否存在的问题。刚开始还我都是直接...
el表达式取值问题
JAVA代码:rn[code=java]public String getAllUsers(HttpServletRequest request)rn request.setAttribute("users",userService.getAllUsers());rn return "userList";rn rn[/code]rn我的[code=java]userService.getAllUsers()[/code]rn可以取过来一值。 里面是一个Listrn我从jsp里面取值就失败。下面是我的jsp核心代码:rn[code=html]rn rn rn 用户IDrn 用户名rn 密码rn rn rn $user.userIdrn $user.userNamern $user.password rn rn rn rn rn[/code]rnrn最后结果是:rn[img=https://img-bbs.csdn.net/upload/201308/02/1375441006_670140.jpg][/img]rn
EL表达式的赋值和取值问题
JSP代码rn[code=html]rn 1$pageScope[]rn 2$requestScope[]rn 3$sessionScope[]rn 4$applicationScope[]\rn[/code]rnrnrn我目前知道request.getsession().setAttribute()那么EL表达式可以用$sessionScope.参数名取得,rnrequest.setAttribute()那么EL表达式可以用$requestScope.参数名取得,rn那么其他对于PageScope,applicationScope应该怎样赋值,
JSP里面用EL表达式报500的错误
参考自https://bbs.csdn.net/topics/270016066 发现JSP里面的&amp;lt;%%&amp;gt;不能和&amp;amp;{属性}在一起用 错误的主要原因   解决参考https://blog.csdn.net/rugaxm/article/details/8124698   &amp;lt;c:set var=&quot;intro&quot; value=&quot;${item.introducit...
EL表达式中特殊字符,需要使用[]取值
  EL表达式中出现以下字符,需要使用[]取值     &quot;}&quot; ...    &quot;.&quot; ...    &quot;[&quot; ...    &quot;&amp;gt;&quot; ...    &quot;gt&quot; ...    &quot;&amp;lt;&quot; ...    &quot;lt&quot; ...    &quot;&amp;gt;=&quot; ...    &quot;ge&quot; ...    &quot;&amp;l
el表达式取值
名称servletognl                          elparametersrequest.getParameter(&quot;username&quot;)#username            ${username}requestrequest.getAttribute(&quot;userName&quot;)#request.userName ${requestScope.username}sess...
EL表达式取值
jsp中el取map的值:    ${map[key1]},取出来直接是value值.   el表达式中的数字1,2,3等是long类型,如果要${ma[2]},则需把后台map(2,value)改为long型以对应类型.  jsp中el取list的值:     ${list[0]},${list[1]},${list[2]} js也可以引用el表达式的值:    
EL表达式 MAP取值
&amp;lt;%HashMap map1 = new HashMap();map1.put(&quot;key1&quot;,&quot;lzsb&quot;)request.setAttribute(&quot;map1&quot;, map1);%&amp;gt;取值${map1[&quot;key1&quot;]}遍历&amp;lt;c:forEach items=&quot;${map1}&quot; var=&quot;i&quot;&amp;gt; ${i.key} ${i.value}&am
关于el表达式,的取值问题
$sessionScope.user和$user为什么都可以取到session范围的值,同时$user也能取到request范围的值,两者的区别在哪里?
EL表达式不能取值的问题
在JSP中 我在Servlet中 的Request域中 添加一个属性 mingZi这是候,在JSP中,使用EL表达式中,可能会写成如下错误FR:海涛高软(QQ技术群:386476712)
反射和EL表达式取值
反射和EL表达式取值取的是Get和Set方法名称,而不是类声明的字段名称 private String a; public String getName(){ return a; } EL表达式访问方式: ${Home.Name} 而不是 {Home.a} ...
js el表达式取值
a 页面有个 button 跳转到 http://127.0.0.1/b.jsp?id=100rnrnrn在b.jsprn rnrn为何alert空值 ?rnrn
EL表达式简单取值
EL表达式简单取值 前提 &amp;lt;!-- JSP页面头部引用JSTL标签 --&amp;gt; &amp;lt;%@ taglib prefix=&quot;c&quot; uri=&quot;http://java.sun.com/jsp/jstl/core&quot;%&amp;gt; &amp;lt;%@ taglib prefix=&quot;fn&quot; uri=&quot;http://java.sun.com/jsp/jstl/functions&quot;%&am
再问el表达式取值
我在action中动态的在request作用域中添加值 如下rnrnList lm=this.itemservice.GetModuleDic(modinfo.getDb_name(), UniKeyName);rnrequest.setAttribute("_DIC_"+mf.getFieldName(), lm);rnrn这里的Key 是动态设置的 【"_DIC_"+mf.getFieldName()】rnrn我想在jsp页面中用用EL 表达式取出 对应的值rnrnrnrnrn[color=#FF0000]这里可以得到 key 字符串 放到temp 变量里[/color]rnrn接下来我应该如何来写 才能取到这个key所对应的键值呢?rnrn
EL表达式取值顺序
使用el的时候,默认会以一定顺序搜索四个作用域,将最先找到的变量值显示出来。  如果我们有${username}这样一个正则表达式,它回去依次调用pageContext.getAttribute(&quot;username&quot;) -&amp;gt; request.getAttribute(&quot;username&quot;) -&amp;gt; session.getAttribute(&quot;username&quot;) -&amp;gt; appli...
EL表达式(取值用法)
EL表达式 是为了简化jsp代码,具体一点就是为了简化在jsp里面写的那些代码 写法格式 ${表达式} 如何使用 1、取出4个作用域中存放的值 存值 &lt;% pageContext.setAttribute("name", "page"); request.setAttribute("name", "request"); session.setAttribute("name...
EL表达式 取值、判断
EL表达式 是为了简化咱们的jsp代码,具体一点就是为了简化在jsp里面写的那些java代码。 对域中对象做判定 写法格式 ${表达式 } 如果从作用域中取值,会先从小的作用域开始取,如果没有,就往下一个作用域取。 一直把四个作用域取完都没有, 就没有显示。 如何使用 1. 取出4个作用域中存放的值。 &amp;amp;lt;% pageContext.setAttribute(&amp;quot;name&amp;quot;,...
struts2里面怎么用el表达式取值
用户登录时候,在java里面保存用户账号如下:rnrequest.getSession().setAttribute("adminid", str);rnrn在jsp页面取值:rnrnrnrn都取不到,请问怎么才能取到adminid的值。rnrn如果我想用el表达式取,又应该怎么取。rnrn谢谢大家。
el表达式加foreach
//下拉框(符合条件就选中) &amp;lt;c:forEach items=&quot;${psy_certificaten}&quot; var=&quot;tt&quot;&amp;gt; &amp;lt;option value=&quot;${tt}&quot; ${tt eq ext_school_psy.psy_certificaten?'selected':''}&amp;gt;${tt}&amp;lt;/option&amp;gt; &amp;lt;/c:forEach&amp;gt; 
jsp页面的EL表达式无法取值。。。。。。
[color=#FF0000][/color]$user.nickname这个值在项目启动时页面没有显示!!!rn<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>rn<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>rn<%@ taglib uri="/struts-tags" prefix="s" %>rn<%@page isELIgnored="false" %>rnrnrn rn rn 北大青鸟办公管理系统rn rn rn rn rn rn <%@ include file="login_check.jsp" %>rn rn rn rn rn rn rn rn $user.nickname 你好!欢迎访问办公管理系统! rn rn rn rn 注销rn rn rn rn rn rn rn rn rn rn rn 信息管理rn 个人信息rn rn rn 邮件管理 rn 写邮件rn 收邮件rn 垃圾邮件rn rn rn 考勤管理 rn 休假rn rn rn 权限管理 rn 个人账户rn rn 管理账户rn rn rn rn rn rn rn rn rn rn rn rn rn Copyright © OAMSrn rn rnrnrn
js中用el表达式取值
1. 取值字符串 java代码 String hello = "Hello World"; model.addAttribute("hello", hello); js代码 var hello = '${hello}'; console.info(hello); 结果 注意:var hello = ‘${hello}’;一定要有...
el表达式取值类型错误
控制台输出的异常:rn[code=Java]rnjavax.el.PropertyNotFoundException: Property 'mallID' not found on type java.lang.Stringrn[/code]rn[code=Java]rnpublic class Wears_bean rn String mallID;//卖场编码rn int sp_Num;//商品数量rn int sp_Seqno;//商品条码rn[/code]rnc:foEach也发出来了rn[code=Java]rnrn rn $status.countrn $spInfo.mallIDrn $spInfo.sp_Numrn $spInfo.sp_Seqnorn rn rn[/code]rn实体类中明明是String类型的,而且对应的get()和set()方法都有,怎么会有这个异常呢?rn请高手指点一下!
ognl,el表达式取值例
request.setAttribute("okk","eleven");     session.setAttribute("kevin","king"); %> ${pageScope.v1} ${v1} ${requestScope.okk} ${sessionScope.kevin} ${param.test}
关于EL表达式的动态取值
EL表达式的静态取值${var},大家都知道自不必多说,那么动态取值呢?发现在平常代码中很少见到,自然而然也就不知到什么是动态取值了只知道$var[num],跪求路过的大神指点一二
EL表达式中Map集合取值
EL 表达式取得Map集合值的时候,如果存入的key值中有动态参数,取值的时候怎么办rn Map SubjectMap = new HashMap();rn SubjectMap.put("sub_"+1, "语文");rn SubjectMap.put("sub_"+2, "数学");rn SubjectMap.put("sub_"+3, "外语");rn1,2,3,4都是动态获取的 rn请教用EL表达式如何获取值?大侠们帮帮忙!
JSP中EL表达式的取值
EL表达式可以取JavaBean的值,也可以取Attribute的值,下面是取Attribute的值<% application.setAttribute("name", "applicationName");//Context域,作用域最大 session.setAttribute("name", "sessionName");//session域,作用域大(当前session有
el表达式取值为null
在action中request.setAttribute后,jsp页面取值为null,不知道怎么错了,求教rnaction:List rolelist = rolemanager.findRoles();rn request.setAttribute("rolelist", rolelist);rn return mapping.findForward("showrole");rnstruts1配置:rn rn rnaction 中 rolelist能正确获取值rnrn请教大家这里到底什么问题,谢谢各位了rnrn分不多,不好意思
tomcat6.0.0报EL表达式错误
NULL 博文链接:https://babykate.iteye.com/blog/1771952
EL表达式中的取值顺序问题
&lt;% pageContext .setAttribute(“a”,”page”); request.setAttribute("a", "request"); session.setAttribute("a", "session"); application.setAttribute(“a”,”application”);%> %&gt; ${a} ...
页面报500的错
小弟做的项目在自已机器上正常,到了客户那里就报了错,请各位高手帮忙解决rn一下,或都谁知道怎样能把它再现也行rn[code=Java]rnjavax.servlet.ServletException: Unresolved compilation problems: rn The import javax.faces cannot be resolvedrn FacesContext cannot be resolved to a typern facesContext cannot be resolvedrn FacesContext cannot be resolvedrn facesContext cannot be resolvedrn facesContext cannot be resolvedrnrn org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)rn org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:145)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)rn com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)rn com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)rn com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)rn com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)rn javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)rnrn原因rnrnjava.lang.Error: Unresolved compilation problems: rn The import javax.faces cannot be resolvedrn FacesContext cannot be resolved to a typern facesContext cannot be resolvedrn FacesContext cannot be resolvedrn facesContext cannot be resolvedrn facesContext cannot be resolvedrnrn jp.co.fes.femesGMC.process.control.LginProcessControl.(LginProcessControl.java:15)rn org.apache.jsp.jsp.login_jsp._jspService(login_jsp.java:110)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)rn com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)rn com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)rn com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)rn com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)rn javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)rnrnrnrnrnrn[/code]
EL表达式取值问题 求指教!!!
一个Struts的Action跳转到一个JSP页面并传递usersList的用户链表参数,现在我想在JSP页面中的js脚本中用EL表达式来取usersList中的第i个元素,我是这么写的:rn[code="java"]rn rn[/code]rnrn求指教!
我想问EL表达式取值问题
我用request.setAttribute("equis",equi);设置了一个对象equi,equi是一个DAO,里面有types,equiName属性。rn我想在jsp页面rnrnetypes : rnequiCode : rninnerCode : rnequiPrice : rnequiName : rn rnrnrn 我想在text里面显示equi的那些属性的值,我应该怎么写才能获得?
EL表达式在前后台的取值赋值问题
EL表达式在前后台的取值赋值问题 包括MAP,LIST,数组等
收藏 JSP自定义标签EL表达式取值问题
源:http://bbs.csdn.net/topics/210040287 评: 给你个标签的例子自己看看吧! 标签:&amp;lt;framework:VoucherCodeToName code=&quot;&quot; /&amp;gt; tld.xml &amp;lt;tag&amp;gt;        &amp;lt;name&amp;gt;VoucherCodeToName&amp;lt;/name&amp;gt;        &amp;lt;tagclass&amp;...
一个EL表达式中map取值的问题
[size=24px]大家好rn在JSP中,map取值老是取不到rn确定map是有值的,打印出来过rnperson.name也确定有值的rn也确定map里有一个String类型的keyrn可是在JSP页面中怎么都出不来,请问该怎么办?麻烦大家帮我看看rnrn文件中表达式是这样的:rn$map[person.name ] [/size]
el 表达式el 表达式el 表达式
el 表达式el 表达式el 表达式el 表达式el 表达式
EL表达式EL表达式
这是一个El表达式;一些常用的写法实例代码;
Struts2中EL表达式的取值顺序及OGNL表达式的取值顺序
好记性不如赖笔头…………正常EL的查找域为:page(PageContext)–>request–>session–>applicationStruts2中EL的查找域为:page(PageContext)–>request–>contextMap–>ValueStack–>session–>application有的人说Struts2的取值顺序是:page(PageContext)–>reques
用EL取值的一个问题
比如:rn在一个ACTION中 rnArrayList arr=new ArrayList();rnarr.add("1-1");rnarr.add("1-2");rnrequest.setAttribute("arr",arr);rn然后跳转至一个页面rn