社区
Java SE
帖子详情
The method **() is undefined for the type
davidbeckham23
2008-04-17 05:30:32
在类中定义了该方法
类型正确
在jsp页面上引用 为什么提示这样的错误
请指点!
...全文
3174
7
打赏
收藏
The method **() is undefined for the type
在类中定义了该方法 类型正确 在jsp页面上引用 为什么提示这样的错误 请指点!
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
7 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
浴火_凤凰
2008-04-18
打赏
举报
回复
可能没有引入JAR包所致。
kingssq
2008-04-18
打赏
举报
回复
你的方法是包访问权限。。。在Hello前面加个public
cpoysy
2008-04-18
打赏
举报
回复
如果是在jar包里面的方法,那么你传值的参数有问题.或是传入值的条件没有考虑全面。比如不能为null或是类型转换错误等等。
davidbeckham23
2008-04-18
打赏
举报
回复
我的方法没有定义在页面
是在jar包里的
怎么无法引用呢?
anqini
2008-04-17
打赏
举报
回复
你是以什么方式调用的,能把source拿出来吗?开源!嘿嘿
cuiyue4420
2008-04-17
打赏
举报
回复
参考一下:
<%@ page language="java" %>
<%@ page contentType="text/html;charset=GB2312" %>
<!DOCTYPE HTML PUBLIC "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<title>声明类</title>
</head>
<body bgcolor="#FFFFFF">
<%! public class sayHello
{boolean county ;
sayHello(boolean county)
{this.county=county;
}
String Hello()
{
if(county)
return "Hello";
else return "你好";
}
}
%>
<% sayHello a =new sayHello(false);%>
<%=a.Hello()%>
</body>
</html>
KingNE
2008-04-17
打赏
举报
回复
<jsp:userbean>
Android问题集(五)——解决提示:The
method
**() is
undefined
for the
type
***()
在非Activity子类方法中,有时想要调用Activity类特有的方法,系统会提示无该方法The
method
is
undefined
的解决方法。
spring boot 常见问题 - 02. The
method
builder() is
undefined
for the
type
Result
问题: The
method
builder() is
undefined
for the
type
Result The
method
getMessage() is
undefined
for the
type
Result (备注:开发环境为:myeclipse) 解决: 解决: 添加 lombok (1)在maven 的pom.xml中添加依赖 <depen...
The
method
getWriter() is
undefined
for the
type
HttpServletRequest的问题
The
method
getWriter() is
undefined
for the
type
HttpServletRequest的问题 突然出现了The
method
getWriter() is
undefined
for the
type
HttpServletRequest的问题,然后在网上找说是servlet-api的问题,说是删了这个包就没问题了,但是删了发现错误更多了,我用的是...
The
method
getTextContent() is
undefined
for the
type
Node
The
method
getTextContent() is
undefined
for the
type
Node Eclipse或MyEclipse 中 如果加入了 其他了xfire 等其他xml解析包的话,使用org.w3c.dom.Node下的getTextContent()方法会出现The
method
getTextContent() is
undefined
for
The
method
startVirtualThread() is
undefined
for the
type
Thread
The
method
startVirtualThread() is
undefined
for the
type
Thread
Java SE
62,635
社区成员
307,269
社区内容
发帖
与我相关
我的任务
Java SE
Java 2 Standard Edition
复制链接
扫一扫
分享
社区描述
Java 2 Standard Edition
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章