Hi Tim,

lets start with Problem #1. I've set up the following
test page that should basically do the same thing
as the code you gave. This works in both 9.03 and
9.04. Note I've used request attributes for evaluation,
for I didn't know where the variables in the original
code come from. Does it run as expected in your
environment, too?

-- Chris.

One more note: we've had a compatibility problem
some time ago when porting one app from Tomcat
to iAS. In Tomcat, it's possible just to say
getServletContext() as the programmers did,
of course ;-). In iAS, this didn't work, you had
to explicitly specify one of the implicit objects
(e.g. config.getServletContext()). Possibly,
your problem may be somewhere in the same
area, too. Here comes the code:

<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ page contentType="text/html" session="false" %>
<html>
  <head><title>Logic Test</title></head>
  <body>

    <% // something to evaluate
       request.setAttribute("displayMode", "EDIT");
       request.setAttribute("ROLE_TEDT", "true");
       request.setAttribute("ROLE_DFSP", "false");
    %>

    <logic:equal name="displayMode" value="EDIT">
    <table border="1">

      <logic:equal name="ROLE_TEDT" value="true">
      <tr>
        <td nowrap><a href="">Option A</a></td>
        <td nowrap><a href="">Option B</a></td>
        <td nowrap><a href="">Option C</a></td>
      </tr>
      </logic:equal>

      <logic:equal name="ROLE_DFSP" value="true">
      <tr>
        <td nowrap><a href="">Option 1</a></td>
        <td nowrap><a href="">Option 2</a></td>
        <td>If this gets displayed, there is an error.</td>
      </tr>
      </logic:equal>

    </table>
    </logic:equal>

  </body>
</html>


----- Original Message -----
From: "Tim Clotworthy" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Wednesday, November 05, 2003 3:47 PM
Subject: RE: Struts1.1 & Oracle 9iAS


Sorry for not getting back sooner (got caught up in other things). As far as
the version, we are using 9.0.3. Here are the two most sticky problems we
have yet to resolve:

Problem1: The way that the Oracle9iAS jsp compiler translates the
<logic:equal> tag is a little strange. The following example shows two logic
equal blocks : one is ROLE_TEDT = "true", another is ROLE_DFSP = "true",
these two blocks should be mutually exclusive.  But in Oracle9iAS, these two
blocks are both evaluated as "true", which is incorrect.

-- CLIP!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to