Book Image

Mastering Netbeans

5 (1)
Book Image

Mastering Netbeans

5 (1)

Overview of this book

Table of Contents (17 chapters)
Mastering NetBeans
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding JavaScript to a web application


So far in this chapter, we've seen how to create both standard Java EE web and Spring Web MVC applications and how to use CSS preprocessors. To complete our look at creating web applications, let's now turn to JavaScript and see what support does NetBeans offer.

The majority of modern web applications are now developed using some sort of JavaScript framework. This ranges from adding simple scripts to a page to enhance the user experience to developing complex single-page applications (SPAs) entirely in JavaScript.

On any web project, NetBeans provides support to add different JavaScript frameworks into the application. From within the Project Properties page, the JavaScript Files category lists a huge number of JavaScript frameworks and libraries that can easily be added to your applications.

The first list displays all of the JavaScript libraries that are available. To add a library into your application, simply select it and click on the > button...