Community
Participate
Working Groups
Steps to reproduce: 1. Create a new Static Web Project with a space in the project name. For instance 'my project'. 2. Right click the static web project and select Properties. 3. Go to the Web Project Settings page. Problem: There is an error shown on the page "Context Root cannot contain whitespace". The New Static Web Project wizard will allow you to press "Finish" when the project name contains a space; however, if you hit "Next", it will display this error and will not let you press Finish. If you then press "Back" the "Finish" button is still disabled. I think if the project name has a space, the user should always have to press "Next" to confirm the context root name and not be given the option of "Finish" until it has been resolved.
Created attachment 184482 [details] Proposed Patch For consistency with the behavior of the Dynamic Web Project, this patch updates the code so that if the project name field in the New Static Web Project dialog contains a space, the context root value will be the same project name value but replacing any spaces with an underscore character.
Code checked into 32M and HEAD for WTP 3.2.3 and 3.3
approved