Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Websphere EL错误jspg0122e_Jsp_Jstl_Websphere_El - Fatal编程技术网

Websphere EL错误jspg0122e

Websphere EL错误jspg0122e,jsp,jstl,websphere,el,Jsp,Jstl,Websphere,El,可以使用EL在jsp中访问Java对象 alert(${requestBean.getData()}); //This statement is throwing error JSPG0122e 已经包含jstl库,并且使用WebSphereV6.1,ObjectRequestBean具有值。 可能的错误是什么?WebSphere v6.1太旧了。它只支持J2EE1.4。您只能使用bean的属性,而不能使用EL中的任意方法。这在JavaEE5(JSP2.0)中得到了支持,它将从WebSpher

可以使用EL在jsp中访问Java对象

alert(${requestBean.getData()});
//This statement is throwing error JSPG0122e
已经包含jstl库,并且使用WebSphereV6.1,ObjectRequestBean具有值。
可能的错误是什么?

WebSphere v6.1太旧了。它只支持J2EE1.4。您只能使用bean的属性,而不能使用EL中的任意方法。这在JavaEE5(JSP2.0)中得到了支持,它将从WebSphere7.0开始


如果您的bean中有get/setData方法,您可以尝试
requestBean.data

谢谢您提供的信息@煤气