如何测试JSP TagExtraInfo?

发布于 2024-08-04 03:30:19 字数 186 浏览 2 评论 0原文

我一直无法让我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

天冷不及心凉 2024-08-11 03:30:19

您可以使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文