JSTL allows the JSP developers to use simple logic and iterative code in the form of tags rather than typical Java code in JSP. In this article, you will know about how to parse XML document using JSTL XML tags.
Category: Java
Java, pure object oriented programming language. It has three different editions: Java 2 Standard Edition (J2SE), Java 2 Enterprise Edition (J2EE) and Java 2 Micro Edition (J2ME)
Permanent link to this article: https://blog.openshell.in/2011/07/how-to-read-xml-document-using-jstl/
Jun 09
Guide to MySQL database Engine.
A MySQL database gives you a choice of database engines and an easy way to switch them. Default MySQL Engine would be enough for most of your application but in certain circumstances where the other available engines may be better suited to the task at hand. Choose your engine The number of database engines available …
Permanent link to this article: https://blog.openshell.in/2011/06/guide-to-mysql-database-engine/
May 18
Java Essential Tips: Display JFrame in Center of the Screen
Target Audience: Java Beginners, Java Swing Developers What should you know already? Basics of Java Swing The beginners of Java might query “How do I display JFrame in center of screen?” on Google quite frequently. JFrame is the top level container in Swing API to show your GUI application. Commonly, there are 2 methods available …
Permanent link to this article: https://blog.openshell.in/2011/05/java-essential-tip-display-jframe-in-center-of-the-screen/
May 16
Java Essestial Tips: ArrayIndexOutOfBoundsException when Delete Elements From JList
Target Audience: Java Beginners, Java UI Developers, Swing Developers What should you know already? Java Swing API When you work around Java Swing UI components, especially JList, JTable or JComboBox, you should give your attention more than the attention you are giving for other components. Because these components are not just a single control, it …
Permanent link to this article: https://blog.openshell.in/2011/05/java-essestial-tips-arrayindexoutofboundsexception-when-delete-elements-from-jlist/
May 09
Excel to MySQL using Java
Target Audience: Java Developers, Database Developers What should you know already? Basics of Java, JDBC Excel to MySQL conversion can be done using LOAD DATA INFILE command as I discussed in Excel to MySQL blog. But that command is inadequate when you need to read the excel cell value and making some calculations or concatenations …
Permanent link to this article: https://blog.openshell.in/2011/05/excel-to-mysql-using-java/
Apr 08
JLayer component
The JLayer class is a flexible and powerful decorator for Swing components, which enables you to implement various advanced painting effects as well as receive notifications of all AWTEvents generated within its borders. It enables you to draw on components and respond to component events without modifying the underlying component directly. JLayer is a good solution if …
Permanent link to this article: https://blog.openshell.in/2011/04/jlayer-component/
Mar 03
Replace Special Characters Using Java
Using Java, have you ever been tried to replace all special characters in a String? Here is the fine example of replacing all special characters in a String using replaceAll() method. It also discusses about the difference between replace and replaceAll methods of java.lang.String class.
Permanent link to this article: https://blog.openshell.in/2011/03/replacing-special-characters-using-java/
Dec 29
MySQL Subquery Optimization
Never use a subquery inside a WHERE field IN(…) the SQL query. It will slow down the process. Slow: SELECT * FORM table1 WHERE field1 IN (SELECT field2 FROM table2 GROUP BY field1) Instead of using a subquery inside an IN(…), use INNER JOIN query. It will speed up the process, but in IN(…) query …
Permanent link to this article: https://blog.openshell.in/2010/12/mysql-subquery-optimization/
Dec 28
Exception Handling Provided by Struts
Exception Handling Capabilities of Struts Target Audience: J2EE Developers, Web Component Developers What you should know already: MVC Design Pattern, Struts Framework, Struts configuration file Exception handling is very crucial part in Web application development. Throwing an exception is Java’s way of informing the client that something has gone wrong while doing a certain processing …
Permanent link to this article: https://blog.openshell.in/2010/12/exception-handling-provided-by-struts/
Dec 18
var args – The magic in Java
Target Audience: Java Developers What should you know? Core Java Writing methods for a class gives completeness for your object. But sometimes it seems to be incomplete when you are not sure about the number of arguments for a method. For example if you are writing a method to find summation of 2 numbers, then …
Permanent link to this article: https://blog.openshell.in/2010/12/var-args-the-magic-in-java/