1.<jsp:useBean>标签中class属性其value必须是包名+类名。通过<%@ page import="包名" %>来导入包,在其class的value仅设置类名,这样编译不会通过,会报类似"org.apache.jasper.JasperException: /useBean.jsp(10,0) The value for the useBean class attribute JellyBean is invalid."的错误提示。
Jsp/Servlet 学习笔记之JavaBean
最新推荐文章于 2022-02-24 17:36:41 发布
博客指出JSP中<jsp:useBean>标签的class属性,其value必须是包名+类名。若通过<%@ page import=\包名\ %>导入包,仅在class的value设置类名,编译会报错,如出现org.apache.jasper.JasperException相关错误提示。
821

被折叠的 条评论
为什么被折叠?



