Hello, all,
There is something wrong with the following piece of code:
logic:match name='userBean' property='userName' value=nested:write
property='checkOutUserVO.userName'/
...
/logic:match
I double-checked the nested:write works.
nested:write property='checkOutUserVO.userName'/
if I change
You can't use a tag as the input into another tag's attribute.
David
From: Denis Wang [EMAIL PROTECTED]
Reply-To: Struts Users Mailing List [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Subject: logic:match
Date: Tue, 28 Jan 2003 13:13:58 -0500
Hello, all
There is something wrong with the following piece of code:
logic:match name='userBean' property='userName' value=nested:write
property='checkOutUserVO.userName'/
...
/logic:match
What error are you getting? I don't think you can put tags inside of tags
like that. I ran into the same
: Tuesday, January 28, 2003 1:32 PM
To: 'Struts Users Mailing List'
Subject: RE: logic:match
There is something wrong with the following piece of code:
logic:match name='userBean' property='userName' value=nested:write
property='checkOutUserVO.userName'/
...
/logic:match
What error are you
thanks.
-Original Message-
From: David Graham [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: logic:match
You can't use a tag as the input into another tag's attribute.
David
From: Denis Wang [EMAIL PROTECTED]
Reply-To: Struts
reason, this evalutates to true for 0 and 10 (and maybe 20
etc... my results don't go that high).
logic:match name='index' value='0'
I like cheese!
/logic:match
Any Ideas?
Graham
In some programming languages '0' is a character while 0 is a string.
try to use 0 instead.
-Original Message-
From: Graham Lounder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 15, 2002 9:02 AM
To: [EMAIL PROTECTED]
Subject: logic:match question
Hello all,
I'm not sure what
logic:match tag looks for value substring in it's body or in bean setted
by name and optionnaly property (using toString() for non String
objects).
Your index is an Integer, and this tag uses toString() value, taht is
decimal view of your index. So 0 and 10 and so on have the 0 substring
Rats! I knew once I heard the explanation that it was going to be something
stupid. Thanks for the help.
Graham
- Original Message -
From: Nicolas De Loof [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 10:12 AM
Subject: Re: logic:match
9 matches
Mail list logo