Eclipse plug in to edit web.xml in Java EE?

故事扮演 提交于 2019-12-20 07:13:10

问题


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

Any plugin of eclipse to edit this automatic, like netbeans or jdeveloper web.xml descriptor?


回答1:


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.




回答2:


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.

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).




回答3:


I remember Netbean has the capability too.



来源:https://stackoverflow.com/questions/7912087/eclipse-plug-in-to-edit-web-xml-in-java-ee

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!