View RSS Feed

XML

Extensible Markup Language (XML) is a set of rules for encoding documents in machine-readable form.

  1. XSLT Conditions

    by , 05-25-2011 at 10:30 AM (My Java Tips)
    Consider the scenario: You have xml data and you need to filter some data out. You may do that in Java but its open a good idea to keep the logic separate in XSLT filters.

    if-then-else condition is done the following way in XSLT:

    Java Code:
    <xsl:choose>
      <xsl:when test="...">
        ...
      </xsl:when>
      <xsl:when test="...">
        ...
      </xsl:when>
      <xsl:otherwise>
    ...
    Tags: xslt Add / Edit Tags
    Categories
    XML
  2. Fetching parameters from web.xml

    by , 05-24-2011 at 02:30 PM (My Java Tips)
    The file named web.xml is part of your web applications. You may use it for different purpose. Sometimes you wish to define some parameters for your web application in it. Obviously, you need to use this in your application. I will briefly tell you how to do this.

    At first, let me give you an example. We have a web application that needs to send its id and license code to some authentication server before doing some business operation. The id and license code are static and you may ...

    Updated 05-24-2011 at 02:34 PM by Java Tip

    Categories
    JSP , Servlet , XML
Page 2 of 2 FirstFirst 12