JSP笔记

JSP链接区分大小写

如果在eclipse项目中改了文件名,要在tomcat对应目录下的Catalina中的对应目录下把之前的文件删除,会重新编译生成,否则会报:java.lang.NoClassDefFoundError: 这个错误。必须要删除,只是修改文件名或者在java文件中修改类名,没有作用。


<Context path="" docBase="D:\eclipseWorkspace\MentalArithmetic\WebContent" debug="0" privileged="true">
</Context>

If you spell the class name wrong or the class isn't on the classpath, the JSP processor will say it "resolves to a package" rather than that it doesn't exist. This was driving me crazy today as I kept not seeing a typo I'd made.

JSP页面中,随便写个导入类的语句,如<%@ page import="a.b.c"%>,就会报下面这个错
Only a type can be imported. a.b.c resolves to a package
无论a.b.c是否真的存在,这说明系统没有找到a.b.c这个类,那么问题就集中在“如何让系统找到自定义的类”。

微软真的很伟大

null是基本类型,java的几个基本类型如下:
Literal:
IntegerLiteral
FloatingPointLiteral
BooleanLiteral
CharacterLiteral
StringLiteral
NullLiteral
对于这些类型的比较,要用==,其它的用equals
.net中的字符串比较可以使用==,应该是微软做的语法糖。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值