Recommended: Sing it, brah! 5 fabulous songs for developers
JW's Top 5
Optimize with a SATA RAID Storage Solution
Range of capacities as low as $1250 per TB. Ideal if you currently rely on servers/disks/JBODs
Page 3 of 3

Figure 5: Music Without Borders, checkout view
Notice that all the resources for this application are session aware, since the model here is stored within the session. Consequently, you must ensure that the user does not somehow access the controller directly, even by mistake. You can take care of this by implementing the automatic client redirection to the error page (shown in Listing 6) when the controller detects the absence of a valid session.
Read more about Core Java in JavaWorld's Core Java section.
| Listing 6: error.html |
|---|
<html> <body> <h1> Sorry, there was an unrecoverable error! <br> Please try <a href="/examples/jsp/shopping/EShop.jsp">again</a>. </h1> </body> </html> |
\jswdk-1.0.1, its default location in Microsoft Windows, deploy the Music Without Borders application files as follows:\jswdk-1.0.1\examples\jspEShop.jsp to \jswdk-1.0.1\examples\jsp\shoppingCart.jsp to \jswdk-1.0.1\examples\jsp\shoppingCheckout.jsp to \jswdk-1.0.1\examples\jsp\shopping.java files by typing javac *.javaShoppingServlet.class to \jswdk-1.0.1\webpages\Web-Inf\servlets\jswdk-1.0.1\examples\Web-Inf\jsp\beansCD.class to \jswdk-1.0.1\examples\Web-Inf\jsp\beans\shoppingerror.html to \jswdk-1.0.1\webpages