如何测试JSP TagExtraInfo?
我一直无法让我的 TagExtraInfo 实现正常工作。我有一种实现可以工作,另一种则不行,我看不出两者之间的区别。所有 IDE 似乎都有与此相关的“错误/功能”,这使得很难看出问题实际上出在哪里。
TagExtraInfo 和 jsp 标记之间的关系应该相当明确地定义,并且我假设我应该能够获得某种合规性测试软件。有人知道这样的事情吗?
I consistently have troubles getting my TagExtraInfo implementations to work properly. I have one implementation that works, and one that doesn't and I unable to see the difference between the two. And all the IDE's seem to have have "bugs/features" regarding this, which makes it hard to see where the problem actually is.
The relationship between a TagExtraInfo and a jsp tag should be reasonably well-defined, and I assuming I should be able to get some kind of compliance-testing software. Anyone know anything like this ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Jetty。这是一个简单的 Web 容器,可以从单元测试中启动。您可以准备一个简单的 web.xml、test.jsp 并监视异常,以查看一切是否正常。有一篇有趣的文章。
You can use Jetty. That is a simple web container that can be started from your unit test. You can prepare a simple web.xml, test.jsp and monitor exceptions in order to see if everything works fine. There is an interesting article.