NetBeans Visual Web Pack 5.5 both runs on the Java 5 platform and NetBeans VWP 5.5 web applications can be compiled and run with a target Java 1.5, 1.4 or 1.3 platform.
To build a NetBeans VWP 5.5 web application that targets 1.5, Sun Application Server 9 must be installed. Then create a project whose server type is "Sun Java System Application Server" with Java EE Version set to "Java EE 5", and "Set Source Level" will automatically be set to 1.5.