8. A computer-readable storage device with executable program code stored thereon, the program code for Asynchronous Java Script and XML (AJAX) form-based authentication using Java 2 Platform Enterprise Edition, wherein the program code is executable to perform: issuing, by an AJAX-enabled application on a client, an AJAX request to a server for secure data, the server configured to detect whether an AJAX request sent from a client requires access to data marked as secure and to redirect the AJAX request to an authentication required servlet in response to detecting that the AJAX request requires access to data marked as secure; receiving an AJAX response from the server, the AJAX response, independently of a server-side security credential form, directing the AJAX-enabled application on the client to obtain user security credentials; simulating a form-based submission by prompting a user for the user security credentials independent of a server-based security credential form; and calling a client-side Java application to send the user security credentials by way of a AJAX form-based authentication request to the server in response to receiving the user-entered security credentials, the server configured to authenticate the user security credentials using a web container authentication service and process the client request for secure data in response to a positive authentication of the user security credentials.
8. A computer-readable storage device with executable program code stored thereon, the program code for Asynchronous Java Script and XML (AJAX) form-based authentication using Java 2 Platform Enterprise Edition, wherein the program code is executable to perform: issuing, by an AJAX-enabled application on a client, an AJAX request to a server for secure data, the server configured to detect whether an AJAX request sent from a client requires access to data marked as secure and to redirect the AJAX request to an authentication required servlet in response to detecting that the AJAX request requires access to data marked as secure; receiving an AJAX response from the server, the AJAX response, independently of a server-side security credential form, directing the AJAX-enabled application on the client to obtain user security credentials; simulating a form-based submission by prompting a user for the user security credentials independent of a server-based security credential form; and calling a client-side Java application to send the user security credentials by way of a AJAX form-based authentication request to the server in response to receiving the user-entered security credentials, the server configured to authenticate the user security credentials using a web container authentication service and process the client request for secure data in response to a positive authentication of the user security credentials. 14. The computer-readable storage device of claim 8 , wherein the authentication required servlet returns a Java Script Object Notation (JSON) object configured to indicate that authentication is required.