logic:notEmpty

2003-03-31 Thread Sloan Seaman
I want to use the logic:notEmpty tag to test if a collection I have is empty or not.

The Collection is in the pageContext under the variable name barcodeList.

The Docs for notEmpty say that name, property, and scope are not required but if I use 
the property attribute it complains that I need the name.  If I use name, it compains 
that I need property.

I would think I should just be able to do:
logic:notEmpty property=barcodeList
  stuff
/logic:notEmpty

but this doesn't seem to work.

What is the correct way?

Thanks!

--
Sloan



This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


Re: logic:notEmpty

2003-03-31 Thread Susan Bradeen
I have used this tag, but I usually reference the name (formbean) and 
property together. At the very least, you *must* include the value 
attribute to make the logic comparison with your property value. Even if 
the tag picked up your property, what it is supposed to be comparing it to 
see if it is notEqual?

Hope this helps,

Susan Bradeen

On 03/31/2003 09:01:50 AM Sloan Seaman wrote:

 I want to use the logic:notEmpty tag to test if a collection I have is 
empty or 
 not.
 
 The Collection is in the pageContext under the variable name 
barcodeList.
 
 The Docs for notEmpty say that name, property, and scope are not 
required but 
 if I use the property attribute it complains that I need the name.  If I 
use 
 name, it compains that I need property.
 
 I would think I should just be able to do:
 logic:notEmpty property=barcodeList
 stuff
 /logic:notEmpty
 
 but this doesn't seem to work.
 
 What is the correct way?
 
 Thanks!
 
 --
 Sloan
 
 
 
 This email has been scanned for all viruses by the MessageLabs SkyScan
 service. For more information on a proactive anti-virus service working
 around the clock, around the globe, visit 
http://www.messagelabs.com

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



Re: logic:notEmpty

2003-03-31 Thread Susan Bradeen
Oops, sorry about that ... I was thinking of the wrong tag! 

Yes, I use notEmpty, and use both name and property attributes.

Susan Bradeen

On 03/31/2003 09:19:18 AM Susan Bradeen wrote:

 I have used this tag, but I usually reference the name (formbean) and
 property together. At the very least, you *must* include the value
 attribute to make the logic comparison with your property value. Even if
 the tag picked up your property, what it is supposed to be comparing it 
to
 see if it is notEqual?
 
 Hope this helps,
 
 Susan Bradeen
 
 On 03/31/2003 09:01:50 AM Sloan Seaman wrote:
 
  I want to use the logic:notEmpty tag to test if a collection I have is
 empty or
  not.
 
  The Collection is in the pageContext under the variable name
 barcodeList.
 
  The Docs for notEmpty say that name, property, and scope are not
 required but
  if I use the property attribute it complains that I need the name.  If 
I
 use
  name, it compains that I need property.
 
  I would think I should just be able to do:
  logic:notEmpty property=barcodeList
  stuff
  /logic:notEmpty
 
  but this doesn't seem to work.
 
  What is the correct way?
 
  Thanks!
 
  --
  Sloan
 
 
  

  This email has been scanned for all viruses by the MessageLabs SkyScan
  service. For more information on a proactive anti-virus service 
working
  around the clock, around the globe, visit
 
http://www.messagelabs.com__
 __
 
 -
 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: logic:notEmpty

2003-03-31 Thread Sloan Seaman
But what isf the collection is directly inside of the page scope and not a
value within a bean that is inside of the page scope?

The name attribute is to get the value from the bean defined in the scope by
the property attribute.  What if the bean itself is the collection?

Or, to put a spin on it, how would you check for the existence of a bean?

--
Sloan

- Original Message -
From: Susan Bradeen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 9:26 AM
Subject: Re: logic:notEmpty


 Oops, sorry about that ... I was thinking of the wrong tag!

 Yes, I use notEmpty, and use both name and property attributes.

 Susan Bradeen

 On 03/31/2003 09:19:18 AM Susan Bradeen wrote:

  I have used this tag, but I usually reference the name (formbean) and
  property together. At the very least, you *must* include the value
  attribute to make the logic comparison with your property value. Even if
  the tag picked up your property, what it is supposed to be comparing it
 to
  see if it is notEqual?
 
  Hope this helps,
 
  Susan Bradeen
 
  On 03/31/2003 09:01:50 AM Sloan Seaman wrote:
 
   I want to use the logic:notEmpty tag to test if a collection I have is
  empty or
   not.
  
   The Collection is in the pageContext under the variable name
  barcodeList.
  
   The Docs for notEmpty say that name, property, and scope are not
  required but
   if I use the property attribute it complains that I need the name.  If
 I
  use
   name, it compains that I need property.
  
   I would think I should just be able to do:
   logic:notEmpty property=barcodeList
   stuff
   /logic:notEmpty
  
   but this doesn't seem to work.
  
   What is the correct way?
  
   Thanks!
  
   --
   Sloan
  
  
  
 
   This email has been scanned for all viruses by the MessageLabs SkyScan
   service. For more information on a proactive anti-virus service
 working
   around the clock, around the globe, visit
 

http://www.messagelabs.com__

  __
 
  -
  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]





This email has been scanned for all viruses by the MessageLabs SkyScan
service. For more information on a proactive anti-virus service working
around the clock, around the globe, visit http://www.messagelabs.com


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



Re: logic:notEmpty

2003-03-31 Thread Susan Bradeen
I think there may be a few issues here ...

First of all, notEmpty, I believe, checks for whether or not a String 
value is set for a specific bean property (checks for null or empty 
String). So I don't think you can use if for a collection as a whole. The 
notPresent tag may be better suited to this, although that may just check 
to see if the collection is in existence, not necessarily populated with 
values. In other words, the collection can be empty, but it is still 
present. I think.

Have you tried using your collection as the name for the bean, and using 
some field in the collection as the property? This brings it more down to 
the level of what notEmpty is used for. 

All my properties are set from my formbean within the action that loads 
the jsp. So in my case, I have a collection object in my form, with its 
getters and setters, and the action does the ... 
myform.setMyCollection(someCollectionFromSomewhere); ... then, if the 
collection is null, the notPresent tag in the jsp will do whatever you 
need it to do. 

You can use the bean:define tags to set your page scoped collection to a 
variable which will be useable within your jsp, but I am not sure if that 
is what you are looking for?

Susan Bradeen

On 03/31/2003 10:02:44 AM Sloan Seaman wrote:

 But what isf the collection is directly inside of the page scope and not 
a
 value within a bean that is inside of the page scope?
 
 The name attribute is to get the value from the bean defined in the 
scope by
 the property attribute.  What if the bean itself is the collection?
 
 Or, to put a spin on it, how would you check for the existence of a 
bean?
 
 --
 Sloan
 
 - Original Message -
 From: Susan Bradeen [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 31, 2003 9:26 AM
 Subject: Re: logic:notEmpty
 
 
  Oops, sorry about that ... I was thinking of the wrong tag!
 
  Yes, I use notEmpty, and use both name and property attributes.
 
  Susan Bradeen
 
  On 03/31/2003 09:19:18 AM Susan Bradeen wrote:
 
   I have used this tag, but I usually reference the name (formbean) 
and
   property together. At the very least, you *must* include the value
   attribute to make the logic comparison with your property value. 
Even if
   the tag picked up your property, what it is supposed to be comparing 
it
  to
   see if it is notEqual?
  
   Hope this helps,
  
   Susan Bradeen
  
   On 03/31/2003 09:01:50 AM Sloan Seaman wrote:
  
I want to use the logic:notEmpty tag to test if a collection I 
have is
   empty or
not.
   
The Collection is in the pageContext under the variable name
   barcodeList.
   
The Docs for notEmpty say that name, property, and scope are not
   required but
if I use the property attribute it complains that I need the name. 
 If
  I
   use
name, it compains that I need property.
   
I would think I should just be able to do:
logic:notEmpty property=barcodeList
stuff
/logic:notEmpty
   
but this doesn't seem to work.
   
What is the correct way?
   
Thanks!
   
--
Sloan
   
   
   
  

This email has been scanned for all viruses by the MessageLabs 
SkyScan
service. For more information on a proactive anti-virus service
  working
around the clock, around the globe, visit
  
 
 
http://www.messagelabs.com__
 
   __
  
   
-
   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]
 
 
 
 
 
 This email has been scanned for all viruses by the MessageLabs SkyScan
 service. For more information on a proactive anti-virus service working
 around the clock, around the globe, visit http://www.messagelabs.com
 
 
 -
 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: logic:notEmpty

2003-03-31 Thread Sloan Seaman
The logic:notPresent tag did the trick

Thanks!

--
Sloan

- Original Message -
From: Susan Bradeen [EMAIL PROTECTED]
To: Struts Users Mailing List [EMAIL PROTECTED]
Sent: Monday, March 31, 2003 10:27 AM
Subject: Re: logic:notEmpty


 I think there may be a few issues here ...

 First of all, notEmpty, I believe, checks for whether or not a String
 value is set for a specific bean property (checks for null or empty
 String). So I don't think you can use if for a collection as a whole. The
 notPresent tag may be better suited to this, although that may just check
 to see if the collection is in existence, not necessarily populated with
 values. In other words, the collection can be empty, but it is still
 present. I think.

 Have you tried using your collection as the name for the bean, and using
 some field in the collection as the property? This brings it more down to
 the level of what notEmpty is used for.

 All my properties are set from my formbean within the action that loads
 the jsp. So in my case, I have a collection object in my form, with its
 getters and setters, and the action does the ...
 myform.setMyCollection(someCollectionFromSomewhere); ... then, if the
 collection is null, the notPresent tag in the jsp will do whatever you
 need it to do.

 You can use the bean:define tags to set your page scoped collection to a
 variable which will be useable within your jsp, but I am not sure if that
 is what you are looking for?

 Susan Bradeen

 On 03/31/2003 10:02:44 AM Sloan Seaman wrote:

  But what isf the collection is directly inside of the page scope and not
 a
  value within a bean that is inside of the page scope?
 
  The name attribute is to get the value from the bean defined in the
 scope by
  the property attribute.  What if the bean itself is the collection?
 
  Or, to put a spin on it, how would you check for the existence of a
 bean?
 
  --
  Sloan
 
  - Original Message -
  From: Susan Bradeen [EMAIL PROTECTED]
  To: Struts Users Mailing List [EMAIL PROTECTED]
  Sent: Monday, March 31, 2003 9:26 AM
  Subject: Re: logic:notEmpty
 
 
   Oops, sorry about that ... I was thinking of the wrong tag!
  
   Yes, I use notEmpty, and use both name and property attributes.
  
   Susan Bradeen
  
   On 03/31/2003 09:19:18 AM Susan Bradeen wrote:
  
I have used this tag, but I usually reference the name (formbean)
 and
property together. At the very least, you *must* include the value
attribute to make the logic comparison with your property value.
 Even if
the tag picked up your property, what it is supposed to be comparing
 it
   to
see if it is notEqual?
   
Hope this helps,
   
Susan Bradeen
   
On 03/31/2003 09:01:50 AM Sloan Seaman wrote:
   
 I want to use the logic:notEmpty tag to test if a collection I
 have is
empty or
 not.

 The Collection is in the pageContext under the variable name
barcodeList.

 The Docs for notEmpty say that name, property, and scope are not
required but
 if I use the property attribute it complains that I need the name.
  If
   I
use
 name, it compains that I need property.

 I would think I should just be able to do:
 logic:notEmpty property=barcodeList
 stuff
 /logic:notEmpty

 but this doesn't seem to work.

 What is the correct way?

 Thanks!

 --
 Sloan



  
 
 This email has been scanned for all viruses by the MessageLabs
 SkyScan
 service. For more information on a proactive anti-virus service
   working
 around the clock, around the globe, visit
   
  
 

http://www.messagelabs.com__
  
__
   
   
 -
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]
  
  
 
 
  
  This email has been scanned for all viruses by the MessageLabs SkyScan
  service. For more information on a proactive anti-virus service working
  around the clock, around the globe, visit http://www.messagelabs.com
  
 
  -
  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]





This email

Re: logic:notEmpty

2003-03-31 Thread Susan Bradeen
You're welcome, although for the record, I was wrong again. :)  After 
finally looking at the docs myself, it *does* say that you should be able 
to use your collection in notEmpty. I didn't remember this, obviously. And 
it does say that it will check for an empty collection. I suppose using 
bean:define to get your collection into a variable, then use that as the 
name attribute of the notEmpty tag, would be what I might try.

However, glad you got it working!

Susan 

On 03/31/2003 10:46:13 AM Sloan Seaman wrote:

 The logic:notPresent tag did the trick
 
 Thanks!
 
 --
 Sloan
 
 - Original Message -
 From: Susan Bradeen [EMAIL PROTECTED]
 To: Struts Users Mailing List [EMAIL PROTECTED]
 Sent: Monday, March 31, 2003 10:27 AM
 Subject: Re: logic:notEmpty
 
 
  I think there may be a few issues here ...
 
  First of all, notEmpty, I believe, checks for whether or not a String
  value is set for a specific bean property (checks for null or empty
  String). So I don't think you can use if for a collection as a whole. 
The
  notPresent tag may be better suited to this, although that may just 
check
  to see if the collection is in existence, not necessarily populated 
with
  values. In other words, the collection can be empty, but it is still
  present. I think.
 
  Have you tried using your collection as the name for the bean, and 
using
  some field in the collection as the property? This brings it more down 
to
  the level of what notEmpty is used for.
 
  All my properties are set from my formbean within the action that 
loads
  the jsp. So in my case, I have a collection object in my form, with 
its
  getters and setters, and the action does the ...
  myform.setMyCollection(someCollectionFromSomewhere); ... then, if the
  collection is null, the notPresent tag in the jsp will do whatever you
  need it to do.
 
  You can use the bean:define tags to set your page scoped collection 
to a
  variable which will be useable within your jsp, but I am not sure if 
that
  is what you are looking for?
 
  Susan Bradeen
 
  On 03/31/2003 10:02:44 AM Sloan Seaman wrote:
 
   But what isf the collection is directly inside of the page scope and 
not
  a
   value within a bean that is inside of the page scope?
  
   The name attribute is to get the value from the bean defined in the
  scope by
   the property attribute.  What if the bean itself is the collection?
  
   Or, to put a spin on it, how would you check for the existence of a
  bean?
  
   --
   Sloan
  
   - Original Message -
   From: Susan Bradeen [EMAIL PROTECTED]
   To: Struts Users Mailing List [EMAIL PROTECTED]
   Sent: Monday, March 31, 2003 9:26 AM
   Subject: Re: logic:notEmpty
  
  
Oops, sorry about that ... I was thinking of the wrong tag!
   
Yes, I use notEmpty, and use both name and property attributes.
   
Susan Bradeen
   
On 03/31/2003 09:19:18 AM Susan Bradeen wrote:
   
 I have used this tag, but I usually reference the name 
(formbean)
  and
 property together. At the very least, you *must* include the 
value
 attribute to make the logic comparison with your property value.
  Even if
 the tag picked up your property, what it is supposed to be 
comparing
  it
to
 see if it is notEqual?

 Hope this helps,

 Susan Bradeen

 On 03/31/2003 09:01:50 AM Sloan Seaman wrote:

  I want to use the logic:notEmpty tag to test if a collection I
  have is
 empty or
  not.
 
  The Collection is in the pageContext under the variable name
 barcodeList.
 
  The Docs for notEmpty say that name, property, and scope are 
not
 required but
  if I use the property attribute it complains that I need the 
name.
   If
I
 use
  name, it compains that I need property.
 
  I would think I should just be able to do:
  logic:notEmpty property=barcodeList
  stuff
  /logic:notEmpty
 
  but this doesn't seem to work.
 
  What is the correct way?
 
  Thanks!
 
  --
  Sloan
 
 
 
   
  

  This email has been scanned for all viruses by the MessageLabs
  SkyScan
  service. For more information on a proactive anti-virus 
service
working
  around the clock, around the globe, visit

   
  
 
 
http://www.messagelabs.com__
   
 __


  -
 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]
   
   
  
  
   

   This email has been

logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Michael P. Jones
Hello-

I have an object that is null (that is what the log says) however the 
logic:empty and logic:notEmpty tags are both executing the nested body.

JSP code:

logic:notEmpty name=pageBean 
property=tripReport.currentTripPage.currentImage/
NOT EMPTY
br
/logic:notEmpty

logic:empty name=pageBean 
 property=tripReport.currentTripPage.currentImage/
EMPTY
br
/logic:empty

I have a log message in my currentTripPage.getCurrentImage() method. The 
log message says that currentImage is null and that is what it is 
returning when the method is getting called.

I am running jakarta-struts-1.1-b3 and Apache Tomcat/4.0.6.

Any ideas?

Thanks in advance-
Michael



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




Re: logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Matthew Meyer
I saw this once and couldn't figure it out. Then I reaized 
that the taglibs weren't defined in the JSP and that they 
were being evaluated.. Do a view source from your browser, 
to verify this.. Hope This solves your problem, because 
it's nice when they are easy to fix.

Matt,


On Thu, 30 Jan 2003 13:41:17 -0500 (EST)
 Michael P. Jones [EMAIL PROTECTED] wrote:
Hello-

I have an object that is null (that is what the log says) 
however the 
logic:empty and logic:notEmpty tags are both executing 
the nested body.

JSP code:

logic:notEmpty name=pageBean 
property=tripReport.currentTripPage.currentImage/
NOT EMPTY
br
/logic:notEmpty

logic:empty name=pageBean 
 property=tripReport.currentTripPage.currentImage/
EMPTY
br
/logic:empty

I have a log message in my 
currentTripPage.getCurrentImage() method. The 
log message says that currentImage is null and that is 
what it is 
returning when the method is getting called.

I am running jakarta-struts-1.1-b3 and Apache 
Tomcat/4.0.6.

Any ideas?

Thanks in advance-
Michael



-
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 : logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Roy . Stephan
You are closing your starting tag.
Remove the / at the end of your starting tag
...pPage.currentImage instead of
...pPage.currentImage/


-Message d'origine-
De : Matthew Meyer [mailto:[EMAIL PROTECTED]] 
Envoyé : jeudi 30 janvier 2003 13:51
À : Struts Users Mailing List
Objet : Re: logic:empty AND logic:notEmpty Both executing?

I saw this once and couldn't figure it out. Then I reaized 
that the taglibs weren't defined in the JSP and that they 
were being evaluated.. Do a view source from your browser, 
to verify this.. Hope This solves your problem, because 
it's nice when they are easy to fix.

Matt,


On Thu, 30 Jan 2003 13:41:17 -0500 (EST)
  Michael P. Jones [EMAIL PROTECTED] wrote:
Hello-

I have an object that is null (that is what the log says) 
however the 
logic:empty and logic:notEmpty tags are both executing 
the nested body.

JSP code:

logic:notEmpty name=pageBean 
 property=tripReport.currentTripPage.currentImage/
NOT EMPTY
br
/logic:notEmpty

logic:empty name=pageBean 
  property=tripReport.currentTripPage.currentImage/
EMPTY
br
/logic:empty

I have a log message in my 
currentTripPage.getCurrentImage() method. The 
log message says that currentImage is null and that is 
what it is 
returning when the method is getting called.

I am running jakarta-struts-1.1-b3 and Apache 
Tomcat/4.0.6.

Any ideas?

Thanks in advance-
Michael



-
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: logic:empty AND logic:notEmpty Both executing?

2003-01-30 Thread Michael P. Jones
Oh I feel silly now. 8-)

Thanks alot!

-Michael


On Thu, 30 Jan 2003 [EMAIL PROTECTED] wrote:

 You are closing your starting tag.
 Remove the / at the end of your starting tag
 ...pPage.currentImage instead of
 ...pPage.currentImage/


 On Thu, 30 Jan 2003 13:41:17 -0500 (EST)
   Michael P. Jones [EMAIL PROTECTED] wrote:
 Hello-
 
 I have an object that is null (that is what the log says) 
 however the 
 logic:empty and logic:notEmpty tags are both executing 
 the nested body.
 
 JSP code:
 
 logic:notEmpty name=pageBean 
  property=tripReport.currentTripPage.currentImage/
 NOT EMPTY
 br
 /logic:notEmpty
 
 logic:empty name=pageBean 
   property=tripReport.currentTripPage.currentImage/
 EMPTY
 br
 /logic:empty
 
 I have a log message in my 
 currentTripPage.getCurrentImage() method. The 
 log message says that currentImage is null and that is 
 what it is 
 returning when the method is getting called.
 
 I am running jakarta-struts-1.1-b3 and Apache 
 Tomcat/4.0.6.
 
 Any ideas?
 
 Thanks in advance-
 Michael
 
 
 
 -
 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]
 


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




Problem using logic:notEmpty

2002-10-19 Thread Vinod Kotnala, Noida
Hi all,
  I want to display a user 'age' if it is not empty. I've tried the
following code but it gives the exception :

javax.servlet.ServletException: You must specify the value attribute or
nested tag content

What could be the reason for this?

The code is:

  logic:iterate id=user name=resList
tr
  td class=commonFont
html:multibox property=selectedUser
  bean:write name=user property=userName/
  
  logic:notEmpty name=user property=age
 bean:write name=user property=age/
  /logic:notEmpty
/html:multibox
  /td
  td class=standard
bean:write name=user property=userName//
bean:write name=user property=age/
  /td
/tr
  /logic:iterate



Regards,
Vinod

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




logic:empty and logic:notEmpty tags

2002-07-12 Thread Ravi Kora

I am using logic:empty tags in my application and it throws an error
saying that the taglib doesn't support that tag. I am using Struts
1.0.2. 
Can anyone tell me if Struts 1.0.2 supports the logic:empty and
logic:notEmpty tags? If it des not, how to go about?

I would really appreciate if someone responds!

Thanks  Regards,
Ravi Kora
[EMAIL PROTECTED]
337-739-3434(M) 



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




Bug in logic:notEmpty?

2002-03-13 Thread theron . kousek


 logic:notEmpty name=EBErrorMsg property=exception scope
=request
 pException: br[bean:write name=EBErrorMsg property
=exception/]brbr
 %
  if (EBErrorMsg.getException() == null) {
   System.out.println(getException is null);
  }
  else {
   System.out.println(getException is not null [ +
EBErrorMsg.getException() + ]);
  }
 %

 /logic:notEmpty

The previous snippet of code prints:
getException is null

I set it to null in the bean prior to the page being loaded.Is there a
problem with the notEmpty tag?

thanks,
Theron


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




Re: Bug in logic:notEmpty?

2002-03-13 Thread theron . kousek


Never mind, I forgot to include:
%@ taglib uri=/struts-logic prefix=logic %

In my JSP.   Surprisingly, I received no JSP errors or exception stack
trace before when I did not have that include.   I am surprised by that
behavior.




   
 
theron.kousek  
 
@webmd.net   To: Struts Users Mailing List 
 
 [EMAIL PROTECTED]  
 
03/13/02 cc:   
 
01:13 PM Subject: Bug in logic:notEmpty?   
 
Please 
 
respond to 
 
Struts Users   
 
Mailing List   
 
   
 
   
 




 logic:notEmpty name=EBErrorMsg property=exception scope
=request
 pException: br[bean:write name=EBErrorMsg property
=exception/]brbr
 %
  if (EBErrorMsg.getException() == null) {
   System.out.println(getException is null);
  }
  else {
   System.out.println(getException is not null [ +
EBErrorMsg.getException() + ]);
  }
 %

 /logic:notEmpty

The previous snippet of code prints:
getException is null

I set it to null in the bean prior to the page being loaded.Is there a
problem with the notEmpty tag?

thanks,
Theron


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




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




I can't find taglib logic:empty nor logic:notEmpty

2001-11-02 Thread Arnaud Chiaberge

Hi all,

On the http://jakarta.apache.org/struts/struts-logic.html; site page, two
very interresting tags are presented : 'empty' and 'notEmpty'.

I have downloaded struts v1.0, but I just can't find them neither the
declaration in the struts-logic.tld file, nor the corresponding .class
files in struts.jar.

Where are they ?

I absolutely need them ;-)

Thanks in advance,

Arnaud Chiaberge


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




Re: logic:notEmpty tag not found

2001-07-26 Thread Marcel Andres

Is it possible to get a pre-release of 1.1 (if yes, where?), so I could use the 
logic:notEmpty tag? Does anybody know an alternative for this tag?

Marcel Andres

-

From:   [EMAIL PROTECTED]
Sent:   Freitag, 20. Juli 2001 09:31
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject:Re: logic:notEmpty tag not found

The logic:empty and logic:notEmpty tags were introduced for Struts 1.1,
so they are not available if you are using Struts 1.0.

The Struts web site generally documents what is available in the latest
nightly build. The documentation for any given build is available in the
struts-documentation.war file for that build, so you should refer to that
for the specifics of what is available in the build you are running.

--
Martin Cooper


- Original Message -
From: Carlos Sham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 9:58 PM
Subject: logic:notEmpty tag not found



 I'm trying to use the logic:notEmpty tag. But it is not
 with the 1.0 or 1.0b03 distribution. However, it is still
 documented in the Logic tags library reference on the site.

 This is what I'm trying to do:

 logic:notEmpty name=myForm property=theString
 bean:write name=myForm preperty=theString/
 /logic:notEmpty

 Any alternative to achieve this or pointer to get the
 'notEmpty' tag would be very helpful.

 Thanks.

 --
 Carlos Sham
 [EMAIL PROTECTED]





Re: logic:notEmpty tag not found

2001-07-20 Thread Martin Cooper

The logic:empty and logic:notEmpty tags were introduced for Struts 1.1,
so they are not available if you are using Struts 1.0.

The Struts web site generally documents what is available in the latest
nightly build. The documentation for any given build is available in the
struts-documentation.war file for that build, so you should refer to that
for the specifics of what is available in the build you are running.

--
Martin Cooper


- Original Message -
From: Carlos Sham [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, July 19, 2001 9:58 PM
Subject: logic:notEmpty tag not found



 I'm trying to use the logic:notEmpty tag. But it is not
 with the 1.0 or 1.0b03 distribution. However, it is still
 documented in the Logic tags library reference on the site.

 This is what I'm trying to do:

 logic:notEmpty name=myForm property=theString
 bean:write name=myForm preperty=theString/
 /logic:notEmpty

 Any alternative to achieve this or pointer to get the
 'notEmpty' tag would be very helpful.

 Thanks.

 --
 Carlos Sham
 [EMAIL PROTECTED]







logic:notEmpty tag not found

2001-07-19 Thread Carlos Sham


I'm trying to use the logic:notEmpty tag. But it is not
with the 1.0 or 1.0b03 distribution. However, it is still
documented in the Logic tags library reference on the site.

This is what I'm trying to do:

logic:notEmpty name=myForm property=theString
bean:write name=myForm preperty=theString/
/logic:notEmpty

Any alternative to achieve this or pointer to get the 
'notEmpty' tag would be very helpful.

Thanks.

-- 
Carlos Sham
[EMAIL PROTECTED]