struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Simon Kelly" <ke...@ipe.fzk.de>
Subject Re: Pointing to resources within the struts app client side.
Date Tue, 18 Feb 2003 15:32:39 GMT
Sorry Wendy, I'm using xslt not jsp :-(    (Code below)

I'm trying to give the web-app root aproach a look at, but I have problems
with tomcat at the mo and the cat wont play :-(

Thanks for the help,

Cheers

Simon

[xslt]
<xsl:if test="*[self::icon] | *[self::image]">
                    <tr>
                        <xsl:choose>
                            <xsl:when test="*[self::icon]">
                                <td>
                                    <img
src="/WEB-INF/classes/graphics/{icon}" alt="Site icon should be here!"
height="100%" hspace="5"/>
                                </td>
                            </xsl:when>
                        </xsl:choose>
                        <xsl:choose>
                            <xsl:when test="*[self::image]">
                                <td>
                                </td>
                            </xsl:when>
                        </xsl:choose>
                    </tr>
                </xsl:if>

[html output]
<html xmlns:fo="http://www.w3.org/1999/XSL/Format">
   <head>
      <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <title>Katrin</title>
   </head>
   <body>
      <table border="0" cellspacing="0" cellpadding="2" width="100%">
         <tbody>
            <tr colspan="2">
               <td>
                  <table border="0" cellspacing="0" cellpadding="2"
width="100%">
                     <tr>
                        <td align="center">
                           <h1>Katrin</h1>
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
            <tr>
               <td><img src="./classes/graphics/FZKIcon.bmp" alt="Site icon"
height="100%" hspace="5">
               </td>
            </tr>
            <tr>
               <td>
                  <table border="0" cellspacing="0" cellpadding="2"
width="100%">
                     <tr>
                        <td align="left">
                           <div align="left" style="font-size:8pt;
font-family:Times serif; padding-top:4; padding-bottom:4; color:red">
                                        Version : 1.0</div>
                        </td>
                        <td align="right">
                           <div align="right" style="font-size:8pt;
font-family:Times serif; padding-top:4; padding-bottom:4; color:red">
                                        Date : 01/01/2003</div>
                        </td>
                     </tr>
                  </table>
               </td>
            </tr>
         </tbody>
      </table>
   </body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message