开发者

Error in <servlet-mapping> <url-pattern> in web.xml in Eclipse Helios for Java EE developers

I am providing an attribute() in in web.xml which is

<servlet-mapping>
    <servlet-name>SpringMVCTutorial</servlet-name>
    <url-pattern&开发者_开发百科gt;*.htm</url-pattern>
</servlet-mapping>

but I am getting an error "The word 'htm' is not correctly spelled". Please let me know if I am making a mistake.

Thank you, Sid


Your XML file is fine. You can just ignore the warning and run it.

Since this Eclipse's builtin XML spellchecker can lead to big annoyments, I'd suggest to just disable it. Go to Window > Preferences > General > Editors > Text Editors > Spelling and untick the checkbox.

Error in <servlet-mapping> <url-pattern> in web.xml in Eclipse Helios for Java EE developers


That is probably a warning. Ignore it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜