facebook

Refactoring doesn’t update web.xml

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #200608 Reply

    Gary Schiltz
    Member

    It appears that renaming a servlet class or moving it to a different package doesn’t cause the web.xml file to be updated. For example, if I create a class MyServlet in the package foo, this is added:

    <servlet>
    <servlet-name>MyServlet</servlet-name>
    <display-name>My Servlet</display-name>
    <description>What a servlet!</description>
    <servlet-class>foo.MyServlet</servlet-class>
    </servlet>

    If I rename MyServlet to MyNewServlet, I would expect (perhaps incorrectly) that “foo.MyServlet” would be replaced with “foo.MyNewServlet” in the above code snippet. I would also expect “foo” to be replaced with “bar” if I moved the class to the bar package.

    #200613 Reply

    Scott Anderson
    Participant

    You’re right. Refactoring support for web.xml files isn’t there yet. Since you’ve requested it I’ve added an enhancement request for the functionality to our internal tracking system. Thanks for the feedback.

    –Scott
    MyEclipse Support

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Refactoring doesn’t update web.xml

You must be logged in to post in the forum log in