[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.webtools] Validation of web.xml for 2.5 projects

Hi all,
I am trying to implement a validator for the web.xml file in 2.5 projects.

Check https://bugs.eclipse.org/bugs/show_bug.cgi?id=204148

I have attached a patch with the initial ideas for implementation and a unit 
test for the validator.

The validation is separated in two main classes - 
org.eclipse.jst.javaee.web.internal.util.WebValidator and 
org.eclipse.jst.javaee.internal.web.validation.JeeUIWarValidator

The WebValidator is the emf validator for the model. I have added two 
additional methods for checking Servlets and Servelts Mappings. The 
validator also checks for every servlet element if the servlet class exists.

The JeeUIWarValidator is a wrapper for the calls to the WebValidator that 
supports the cancelation of the validation.

The attached patch is just the initial idea of the implementation and it 
will soon change.

It will be greate if you can check the implementation and give you comments.

Best Regards,
Kiril