简体   繁体   English

Eclipse插件可以在Java EE中编辑web.xml吗?

[英]Eclipse plug in to edit web.xml in Java EE?

I have a Java EE web page and web.xml descriptor of the project has not a interactive way to add information like servlet-servlet mapping, etc. all it's only manual 我有一个Java EE网页 ,该项目的web.xml描述符没有一种交互方式来添加信息,例如servlet-servlet映射等。

Any plugin of eclipse to edit this automatic, like netbeans or jdeveloper web.xml descriptor? 是否有任何eclipse插件来编辑此自动程序,例如netbeans或jdeveloper web.xml描述符?

Yes . 是的。 JBoss Tool is an umbrella project for a set of Eclipse plugins that supports JBoss and related technology such as JSF, (X)HTML, Seam, Hibernate etc. It contains the web.xml editor .See this . JBoss的工具是一个Eclipse插件,它支持JBoss和相关技术,如JSF,(X)HTML时,Seam,Hibernate等等。它包含了web.xml编辑器。看到一把伞项目

在此处输入图片说明

If you're using Servlets 3.0 in Java EE 6 than you can define servlet url's, filters, security, etc. directly in your code using annotations like @WebServlet, @WebFilter etc. 如果您在Java EE 6中使用Servlets 3.0,则可以使用@ WebServlet,@ WebFilter等注释直接在代码中定义servlet URL,过滤器,安全性等。

In Eclipse, if you add the XML Schema definition to the web.xml file than eclipse will tell you what elements are allowed in the place you're editing (after you hit ctrl + space). 在Eclipse中,如果将XML Schema定义添加到web.xml文件中,则eclipse会告诉您在编辑位置(按Ctrl +空格后)允许使用哪些元素。

我记得Netbean也有能力。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM