This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
There are probably two different templates for web module Deployment Descriptor -- depends on creation from Wizard or Convert FS. Two web modules creation: [WIZARD:] W) Invoke Wizard for web module and create it by [CONVERT:] C) Empty mounted Filesystem Convert to web module (right click -> Tools -> Convert Filesystem into Web Module) DIFFERENCES of DD: 1) indentation size 2 spaces (case W) vs. 4 spaces (case C) 2) bad indentation in (W) -- probably caused by using parts of case C and their different indentation size - web-app tag attributes - values: session-timeout welcome-file - end tags: </session-timeout> </welcome-file>
Can not reproduce on current trunk
If it works, please report that to Zikmund and the original responsible engineer allow either of them to close it.
OK, now it appears only in case, that you create a new Servlet in a web module. Then the source code indentation differs from the one web module's DD without servlet. How to reproduce: 1) Have mounted empty local directory 2) Create a new web module (using wizard or convert -- doesn't matter) 3) See DD = web.xml file (good indentation) 4) Create a new servlet in a web module 5) Again see DD 6) ERROR: bad indentation.
We must reindent source with 4 spaces.
Created attachment 13208 [details] patch
Fixed - there is no 'Convert into Web Module' action in 4.0
Verified.