RE: Struts1.1 Oracle 9iAS

2003-11-05 Thread Tim Clotworthy
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. 

logic:equal name = displayMode value = EDIT

   logic:equal name = ROLE_TEDT value = true
  td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddGroundSaleUrl/Add
Ground Sale /anbsp;nbsp;
 /td
td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddAircraftSaleUrl/Add Aircraft
Sale /anbsp;nbsp;
   /td
  td nowrap=yes align=left class=content-tab
 a class=tab href=bean:write name=AddNavyShipSaleUrl/Add
Navy Ship Sale/anbsp;nbsp;
  /td
/logic:equal

logic:equal name = ROLE_DFSP value = true
  td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddNonUsGovSaleUrl/Add Ships and
Non US Government Sale/anbsp;nbsp;
  /td
 td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddUsGovSaleUrl/Add US
Government Sale /anbsp;nbsp;
/td
/logic:equal

/logic:equal

Problem2: The tiles: tag does not work. The following code, using my
tiles: tag, results in a 500 Internal Server Error from
org.apache.struts.taglib.InsertTag.processName(InsertTag.java: 527).

titletiles:get name='title'//title

   tiles:get name=GlobalNavigation flush='true' /

   tiles:get name=SubNavigation flush='true' /

   tiles:get name=TitleImage flush='true' /

   tiles:get name=Body flush='true' /




If I change the tiles: tag to struts1.0 template: tag, everything works
fine.

  titletemplate:get name='title'//title

template:get name=GlobalNavigation flush='true' /

template:get name=SubNavigation flush='true' /

template:get name=TitleImage flush='true' /

template:get name=Body flush='true' /



 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED] 
 Sent: Monday, November 03, 2003 11:32 AM
 To: Struts Users Mailing List
 Subject: RE: Struts1.1  Oracle 9iAS
 
 
  -Original Message-
  From: Tim Clotworthy [mailto:[EMAIL PROTECTED]
  
  I am saddled with having to re-implement a struts-based 
 architecture 
  designed to run on a Tomcat web container, to an Oracle 
 9iAS Release2 
  (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support 
  Struts1.0 framework, but does not seem to support the various 
  Struts1.1 capabilities
  that our system already leverages, which include:
  
  1) the RequestProcessor (specifically using ProcessRoles extension)
  2) Tiles
  3) LookupDispatchAction class
  4) some other things..
  
  If anyone else may be in a similarly unfortunate position,
  and can share any
  insights on how they either:
  
  1) figured out how to get 9iAS Release2 to work with Struts1.1,
  
  Or else:
  
  2) can share any insights on how they got around similar
  problems, it would
  be greatly appreciated. Thanks.
 
 First of all, what release of 9iAS are you using (9.0.2, 9.0.3, etc.)?
 
 When you say it doesn't support those features, what 
 exactly do you mean?  Are you getting particular error messages?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 

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

Re: Struts1.1 Oracle 9iAS

2003-11-05 Thread Christian Bollmeyer
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
  headtitleLogic 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 nowrapa href=Option A/a/td
td nowrapa href=Option B/a/td
td nowrapa href=Option C/a/td
  /tr
  /logic:equal

  logic:equal name=ROLE_DFSP value=true
  tr
td nowrapa href=Option 1/a/td
td nowrapa href=Option 2/a/td
tdIf 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]



RE: Struts1.1 Oracle 9iAS

2003-11-05 Thread mradhakrishnan
Hi
   There are atleast 4 projects that we are working on right now using
OC4J and various verions of Struts and we don't have any problem. We have
logic:equal all over the place. We are also using tiles.
Mohan

 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.

 logic:equal name = displayMode value = EDIT

   logic:equal name = ROLE_TEDT value = true
  td nowrap=yes align=left class=content-tab
a class=tab href=bean:write
name=AddGroundSaleUrl/Add
 Ground Sale /anbsp;nbsp;
 /td
td nowrap=yes align=left class=content-tab
 a class=tab href=bean:write name=AddAircraftSaleUrl/Add
 Aircraft Sale /anbsp;nbsp;
   /td
  td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddNavyShipSaleUrl/Add
 Navy Ship Sale/anbsp;nbsp;
  /td
 /logic:equal

 logic:equal name = ROLE_DFSP value = true
  td nowrap=yes align=left class=content-tab
 a class=tab href=bean:write name=AddNonUsGovSaleUrl/Add Ships
 and Non US Government Sale/anbsp;nbsp;
  /td
 td nowrap=yes align=left class=content-tab
a class=tab href=bean:write name=AddUsGovSaleUrl/Add US
 Government Sale /anbsp;nbsp;
/td
 /logic:equal

 /logic:equal

 Problem2: The tiles: tag does not work. The following code, using my
 tiles: tag, results in a 500 Internal Server Error from
 org.apache.struts.taglib.InsertTag.processName(InsertTag.java: 527).

titletiles:get name='title'//title

   tiles:get name=GlobalNavigation flush='true' /

   tiles:get name=SubNavigation flush='true' /

   tiles:get name=TitleImage flush='true' /

   tiles:get name=Body flush='true' /




 If I change the tiles: tag to struts1.0 template: tag, everything
 works fine.

  titletemplate:get name='title'//title

   template:get name=GlobalNavigation flush='true' /

   template:get name=SubNavigation flush='true' /

   template:get name=TitleImage flush='true' /

   template:get name=Body flush='true' /



 -Original Message-
 From: Karr, David [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 03, 2003 11:32 AM
 To: Struts Users Mailing List
 Subject: RE: Struts1.1  Oracle 9iAS


  -Original Message-
  From: Tim Clotworthy [mailto:[EMAIL PROTECTED]
 
  I am saddled with having to re-implement a struts-based
 architecture
  designed to run on a Tomcat web container, to an Oracle
 9iAS Release2
  (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support
  Struts1.0 framework, but does not seem to support the various
  Struts1.1 capabilities
  that our system already leverages, which include:
 
  1) the RequestProcessor (specifically using ProcessRoles extension)
  2) Tiles
  3) LookupDispatchAction class
  4) some other things..
 
  If anyone else may be in a similarly unfortunate position,
  and can share any
  insights on how they either:
 
  1) figured out how to get 9iAS Release2 to work with Struts1.1,
 
  Or else:
 
  2) can share any insights on how they got around similar
  problems, it would
  be greatly appreciated. Thanks.

 First of all, what release of 9iAS are you using (9.0.2, 9.0.3, etc.)?

 When you say it doesn't support those features, what
 exactly do you mean?  Are you getting particular error messages?

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





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



RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Karr, David
 -Original Message-
 From: Tim Clotworthy [mailto:[EMAIL PROTECTED] 
 
 I am saddled with having to re-implement a struts-based architecture
 designed to run on a Tomcat web container, to an Oracle 9iAS Release2
 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS 
 support Struts1.0
 framework, but does not seem to support the various Struts1.1 
 capabilities
 that our system already leverages, which include:
 
 1) the RequestProcessor (specifically using ProcessRoles extension)
 2) Tiles
 3) LookupDispatchAction class
 4) some other things..
 
 If anyone else may be in a similarly unfortunate position, 
 and can share any
 insights on how they either:
 
 1) figured out how to get 9iAS Release2 to work with Struts1.1,
 
 Or else:
 
 2) can share any insights on how they got around similar 
 problems, it would
 be greatly appreciated. Thanks.

First of all, what release of 9iAS are you using (9.0.2, 9.0.3, etc.)?

When you say it doesn't support those features, what exactly do you
mean?  Are you getting particular error messages?

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



RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Jose Ramon Diaz
Hi,

 We do NOT have any problem using Struts 1.1 with Oracle 9iAS 9.0.3. 
 What kind of problems do you have?

 We have problems with 9iAS,  but not related with Struts, else with the
cluster,...

 -Mensaje original-
 De: Karr, David [mailto:[EMAIL PROTECTED]
 Enviado el: lunes, 03 de noviembre de 2003 17:32
 Para: Struts Users Mailing List
 Asunto: RE: Struts1.1  Oracle 9iAS
 
 
  -Original Message-
  From: Tim Clotworthy [mailto:[EMAIL PROTECTED] 
  
  I am saddled with having to re-implement a struts-based architecture
  designed to run on a Tomcat web container, to an Oracle 
 9iAS Release2
  (Tomcat is out, end-of-discussion). Unfortunately, 9iAS 
  support Struts1.0
  framework, but does not seem to support the various Struts1.1 
  capabilities
  that our system already leverages, which include:
  
  1) the RequestProcessor (specifically using ProcessRoles extension)
  2) Tiles
  3) LookupDispatchAction class
  4) some other things..
  
  If anyone else may be in a similarly unfortunate position, 
  and can share any
  insights on how they either:
  
  1) figured out how to get 9iAS Release2 to work with Struts1.1,
  
  Or else:
  
  2) can share any insights on how they got around similar 
  problems, it would
  be greatly appreciated. Thanks.
 
 First of all, what release of 9iAS are you using (9.0.2, 9.0.3, etc.)?
 
 When you say it doesn't support those features, what exactly do you
 mean?  Are you getting particular error messages?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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

RE: Struts1.1 Oracle 9iAS

2003-11-03 Thread Robert Augustyn
Jose,
What problems have you run to with a cluster?
robert

Jose Ramon Diaz [EMAIL PROTECTED] wrote:
Hi,

We do NOT have any problem using Struts 1.1 with Oracle 9iAS 9.0.3. 
What kind of problems do you have?

We have problems with 9iAS, but not related with Struts, else with the
cluster,...

 -Mensaje original-
 De: Karr, David [mailto:[EMAIL PROTECTED]
 Enviado el: lunes, 03 de noviembre de 2003 17:32
 Para: Struts Users Mailing List
 Asunto: RE: Struts1.1  Oracle 9iAS
 
 
  -Original Message-
  From: Tim Clotworthy [mailto:[EMAIL PROTECTED] 
  
  I am saddled with having to re-implement a struts-based architecture
  designed to run on a Tomcat web container, to an Oracle 
 9iAS Release2
  (Tomcat is out, end-of-discussion). Unfortunately, 9iAS 
  support Struts1.0
  framework, but does not seem to support the various Struts1.1 
  capabilities
  that our system already leverages, which include:
  
  1) the RequestProcessor (specifically using ProcessRoles extension)
  2) Tiles
  3) LookupDispatchAction class
  4) some other things..
  
  If anyone else may be in a similarly unfortunate position, 
  and can share any
  insights on how they either:
  
  1) figured out how to get 9iAS Release2 to work with Struts1.1,
  
  Or else:
  
  2) can share any insights on how they got around similar 
  problems, it would
  be greatly appreciated. Thanks.
 
 First of all, what release of 9iAS are you using (9.0.2, 9.0.3, etc.)?
 
 When you say it doesn't support those features, what exactly do you
 mean? Are you getting particular error messages?
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

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

-
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears

Re: Struts1.1 Oracle 9iAS

2003-11-03 Thread Patrick Schilling
Tim Clotworthy wrote:

Hi,
I am saddled with having to re-implement a struts-based architecture
designed to run on a Tomcat web container, to an Oracle 9iAS Release2
(Tomcat is out, end-of-discussion). Unfortunately, 9iAS support Struts1.0
framework, but does not seem to support the various Struts1.1 capabilities
that our system already leverages, which include:
1) the RequestProcessor (specifically using ProcessRoles extension)
2) Tiles
3) LookupDispatchAction class
4) some other things..
If anyone else may be in a similarly unfortunate position, and can share any
insights on how they either:
1) figured out how to get 9iAS Release2 to work with Struts1.1,

Or else:

2) can share any insights on how they got around similar problems, it would
be greatly appreciated. Thanks.




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

I have used Struts 1.1 with 9ias 9.0.2 and 9.0.3 and it worked fine.  I 
believe I even ran it on 9.0.1 and that was OK as well.  The only issue 
I have had is that JSTL does not work with 9.0.2 or less, but besides 
that you should be good to go.  I think JDeveloper might ship with 1.0, 
but you are by no means limited to using that on 9ias.

-Patrick



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


Re: Struts1.1 Oracle 9iAS

2003-11-03 Thread Christian Bollmeyer
Am Montag, 3. November 2003 17:26 schrieb Tim Clotworthy:

 Hi,

Hi,

 I am saddled with having to re-implement a struts-based architecture
 designed to run on a Tomcat web container, to an Oracle 9iAS Release2
 (Tomcat is out, end-of-discussion). Unfortunately, 9iAS support
 Struts1.0 framework, but does not seem to support the various
 Struts1.1 capabilities that our system already leverages, which
 include:

 1) the RequestProcessor (specifically using ProcessRoles extension)
 2) Tiles
 3) LookupDispatchAction class
 4) some other things..

 If anyone else may be in a similarly unfortunate position, and can
 share any insights on how they either:

Oracle iAS is J2EE-certified and has proven to be rock-solid.
It's definitely different from Tomcat, and OC4J (that is: an
enhanced version of the Orion server) configuration can
be confusing sometimes (whole lot of unfamiliar files, and
the only reference manuals your're given is a quick chart,
at least when I was confronted with OC4J for the first time).
But then, it's really nice. And there's no problem with Struts
1.1 at all. Note that the Java part of iAS 9i comes in several
different flavors, one built into JDeveloper, one to be run
standalone (OC4J, nearly identical to Orion) and then the
iAS itself which the J2EE container is but part of. Then,
considering Struts, to the web container it's just another
servlet, basically. So in the end, I wouldn't consider your
position as 'unfortunate'. Let's say 'challenging' (and
don't forget you can add Oracle iAS experience to
your CV afterwards :-))

 1) figured out how to get 9iAS Release2 to work with Struts1.1,

 Or else:

 2) can share any insights on how they got around similar problems, it
 would be greatly appreciated. Thanks.

Well, Struts and Oracle iAS run together in complete
harmony ;-) If you have JDev 9i (9.0.3), Oracle even
shipped this version with the beta version (2, IIRC)
of Struts 1.1 (the iAS 9i CDs still come with 9.0.2).
If you have a specific problem (and my limited time
allows), I may help you if I can, but first, you have
to come clear about what exactly your problem is,
including the iAS version and general setup you're
using.

-- Chris.


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