Configuring JDBC DataSources in Struts
You can define any number of JDBC javax.sql.DataSource objects for the application in the configuration file under the element . Every data source is defined within the element usi
Read tutorialTHE TUTORIAL LIBRARY
You can define any number of JDBC javax.sql.DataSource objects for the application in the configuration file under the element . Every data source is defined within the element usi
Read tutorialAs you'd expect in an MVC framework, every request starts at the Struts controller, the heart of which is the ActionServlet class. This servlet is usually mapped to the extension *
Read tutorialThe Model 1 architecture has one thing going for it: simplicity. If your project is small, simple, and self-contained, it's the quickest way to get up and running. But the previous
Read tutorialThe scope of an object describes how widely it's available and who has access to it. For example, if an object is defined to have page scope, then it's available only for the durat
Read tutorialThis article discusses what gives stored procedures their important role in serious database-driven applications. These are the many advantages that stored procedures provide
Read tutorialConvert both dates to epoch timestamps and subtract one from the other. Use this code to separate the difference into weeks, days, hours, minutes, and seconds:
Read tutorialYou have data in comma-separated values (CSV) format, for example a file exported from Excel or a database, and you want to extract the records and fields into a format you can man
Read tutorialMerging arrays with only numerical keys causes the arrays to get renumbered, so values aren't lost. Merging arrays with string keys causes the second array to overwrite the value o
Read tutorialOnce processing is completed, array_unique()is the best way to eliminate duplicates. But, if you're inside a loop, you can eliminate the duplicate entries from appearing by checkin
Read tutorialThe sort() function doesn't preserve the key/value association between elements; instead, entries are reindexed starting at 0 and going upward. (The one exception to this rule is a
Read tutorialWith foreach, PHP iterates over a copy of the array instead of the actual array. In contrast, when using each() and for, PHP iterates over the original array. So, if you modify the
Read tutorialWhen a browser sees a 401 header, it pops up a dialog box for a username and password. Those authentication credentials (the username and password), if accepted by the server, are
Read tutorialOne example today. A better developer tomorrow.