Category Archives: Java

Java Coding Standards and Best Programming Practices

Naming Conventions and Standards Note: The terms Pascal Casing and Camel Casing are used throughout this document. Pascal Casing – First character of all words are Upper Case and other characters are lower case. Example: BackColor Camel Casing – First … Continue reading

Posted in Best Practices, Java, Software Programming | Tagged , , , , , | Leave a comment

Java Web Application Security – XSS Combat Part 2

A previous post from last year introduced a grand project that I was about to begin. After much analysis and searching I found a great solution that would secure my Java (JEE) application against XSS and SQLi attacks. OWASP – … Continue reading

Posted in ESAPI, Java, OWASP, Security, SQL Injection, XSS | Tagged , , , , , , , , | Leave a comment

Combating XSS in a Java Web Application

Recently, out Java Web App went through a Veracode security scan. Since the application is used by over 25,000 users world wide, I do see it as important that this scan took place. Although, I have placed some anti-XSS (Cross … Continue reading

Posted in Java, Security, SQL Injection, XSS | Tagged , , , , , | Leave a comment

Calling a .NET C# Web Service with a Java/JSP Client

Netbeans and Apache Tomcat are used in this example to make a JSP client with the help of Apache SOAP toolkit (http://axis.apache.org/axis/). Assumption here is that you are bit familiar with JSP and NetBeans. Also, Apache Xerces (http://xerces.apache.org/) is used … Continue reading

Posted in Java, Tomcat, Web Services | Tagged , , , , , | 3 Comments

The Java ternary operator

Interested in saying a lot while writing a little? In a single line of code, the Java ternary operator let’s you assign a value to a variable based on a boolean expression (either a boolean field, or a statement that … Continue reading

Posted in Java, Software Programming | Leave a comment

Trick or Treat Rhyme Java Style

The very best part of Javaween Is coding more lines than you’ve ever seen. I’ve got my largest JVM on. I got Tomcat, JBoss, I’ve even been to Java One Sun’s gone down, I’m all fucked up, Oracle’s out to … Continue reading

Posted in Java, Software Programming | Tagged | Leave a comment