SourceFormatX

Overview

Features

Why Use It

Formatting Show

Integration

Screenshots

Documentation

FAQs & Tips

Update History

Award Gallery

Testimonials

License Policy

CodeMorph

CodeToHtml

JSP Source Code Formatting Show


SourceFormatX code formatter bases on powerful syntax parse engines so it can beautify and format source code files with omnifarious styles, even these messy source code examples below:

C/C++ Java C# Delphi (Pascal)
PHP JSP ASP JavaScript
Visual Basic VB.NET VBScript HTML Components
80x86 ASM 8051 ASM CORBA IDL


This is an extreme JSP code formatting example, the purpose of it is to show the power of SourceFormatX's Java / JSP (JavaServer Pages) syntax parse engines. SourceFormatX Java/JSP Code Formatter is a professional code formatting tool for Java and JSP.

  <!-- Before JSP Code Formatting -->

  <html>
  <body bgcolor="#c8d8f8">
  <form action="/examples/jsp/jdc/forms/form.jsp" method=post>
  <font color=red>
  <b>You submitted:<P>
  First Name:</b><br>
  <%-- invoke the getter method to display the firstName using the getProperty tag --%>
  <br><b>Last Name:</b><br>
  <%-- invoke the getter method to display the lastName using the getProperty tag --%>
  <br><b>Email:</b><br>
  <%-- invoke the getter method to display the email address using the getProperty tag --%>
  <b>Languages:</b><br>
  <%
  if(request.getMethod().equals("POST")){if(request.getParameter("language")
  .equals("JAVA")){out.println("<hr><font color=red>You got that right!</font>");
  }else{//thow a new exception initializing it with some message
  }}if(!lang[0].equals("1")){out.println("<ul>");for(int i=0;i<lang.length;i++)
  out.println("<li>"+lang[i]);out.println("</ul>");}else out.println(
  "Nothing was selected<br>");
  %>
  <b>Notification:</b><br>
  <%-- invoke the getter method to display the ntotification status using the getProperty
  tag --%>
  </font>
  </body>
  </html>


  <!-- After JSP Code Formatting -->

  <html>
  <body bgcolor="#c8d8f8">
  <form action="/examples/jsp/jdc/forms/form.jsp" method=post>
  <font color=red>
  <b>You submitted:<P>
  First Name:</b><br>
  <%-- invoke the getter method to display the firstName using the getProperty tag --%>
  <br><b>Last Name:</b><br>
  <%-- invoke the getter method to display the lastName using the getProperty tag --%>
  <br><b>Email:</b><br>
  <%-- invoke the getter method to display the email address using the getProperty tag --%>
  <b>Languages:</b><br>
  <%
  if (request.getMethod().equals("POST"))
  {
    if (request.getParameter("language").equals("JAVA"))
    {
      out.println("<hr><font color=red>You got that right!</font>");
    }
    else
    {
      //thow a new exception initializing it with some message
    }
  }
  if (!lang[0].equals("1"))
  {
    out.println("<ul>");
    for (int i = 0; i < lang.length; i++)
      out.println("<li>" + lang[i]);
    out.println("</ul>");
  }
  else
    out.println("Nothing was selected<br>");
  %>
  <b>Notification:</b><br>
  <%-- invoke the getter method to display the ntotification status using the getProperty
  tag --%>
  </font>
  </body>
  </html>

  Don't waste time on formatting JSP / Java code by hand any more!  Download SourceFormatX JSP Formatter Free Trial Now!