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

前端 未结 3 573
孤城傲影
孤城傲影 2021-01-28 19:40

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.

相关标签:
3条回答
  • 2021-01-28 20:23

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

    0 讨论(0)
  • 2021-01-28 20:27

    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.

    enter image description here

    0 讨论(0)
  • 2021-01-28 20:27

    I remember Netbean has the capability too.

    0 讨论(0)
提交回复
热议问题