You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Bill Siggelkow <bi...@bellsouth.net> on 2004/08/25 22:20:33 UTC

Re: conundrum.

Hmmm ... well, it works for me under Struts 1.2; however I did notice 
that your <logic:equal> tag did not specify the required 'value' attribute.

Here is the snippet I tested with:

   <logic:present name="foo">
     <logic:equal name='foo' property='bar' value='baz'>
      Blah blah
    </logic:equal>
   </logic:present>

Also, if I change to use the <logic:notPresent> it does fail as expected 
when it hits the <logic:equal> tag.

Bill Siggelkow

Michael McGrady wrote:

> If a bean named 'actionForm' is not present and we have the following:
> 
> <logic:present name='actionForm'>
>  <logic:equal name='actionForm' property='someProperty'>
>    Blah blah
>  </logic:equal>
> </logic:present>
> 
> Then nothing inside <logic:present> should be evaluated, should it?  I 
> am getting an error that says that there is no bean called 'actionForm' 
> for the <logic:equal> tag which I thought I avoided with the 
> <logic:present> tag.  What's with this?
> 
> That is "conundrum", Jim Mitchell, and not what you were thinking!
> 
> Michael


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


Re: conundrum.

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
Bill Siggelkow wrote:

> Tomcat seems to "hang on" to pages sometimes -- when I run into 
> problems that seem should *not* be happening -- I always dump the 
> particular folder in /webapps and 'rm -r' the /work directory.
>
> Michael McGrady wrote:
>
>> Bill Siggelkow wrote:
>>
>>> Hmmm ... well, it works for me under Struts 1.2; however I did 
>>> notice that your <logic:equal> tag did not specify the required 
>>> 'value' attribute.
>>>
>>> Here is the snippet I tested with:
>>>
>>>   <logic:present name="foo">
>>>     <logic:equal name='foo' property='bar' value='baz'>
>>>      Blah blah
>>>    </logic:equal>
>>>   </logic:present>
>>>
>>> Also, if I change to use the <logic:notPresent> it does fail as 
>>> expected when it hits the <logic:equal> tag.
>>>
>>> Bill Siggelkow
>>>
>>> Michael McGrady wrote:
>>>
>>>> If a bean named 'actionForm' is not present and we have the following:
>>>>
>>>> <logic:present name='actionForm'>
>>>>  <logic:equal name='actionForm' property='someProperty'>
>>>>    Blah blah
>>>>  </logic:equal>
>>>> </logic:present>
>>>>
>>>> Then nothing inside <logic:present> should be evaluated, should 
>>>> it?  I am getting an error that says that there is no bean called 
>>>> 'actionForm' for the <logic:equal> tag which I thought I avoided 
>>>> with the <logic:present> tag.  What's with this?
>>>>
>>>> That is "conundrum", Jim Mitchell, and not what you were thinking!
>>>>
>>>> Michael
>>>
>>>
>>>
>>>
>>
>> One of those strange things, Bill, that I never could find on the 
>> page.  Finally dumped the page and rolled back to a few hours ago and 
>> am going on with no difficulties.  Odd?  Sometimes it is not clear 
>> where the glitch is and it is worth dumping some good time to get rid 
>> of some bad, huh?
>>
>> Michael 
>

You are right.  I should try that first.  Thanks for reminding me.


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


Re: conundrum.

Posted by Bill Siggelkow <bi...@bellsouth.net>.
Tomcat seems to "hang on" to pages sometimes -- when I run into problems 
that seem should *not* be happening -- I always dump the particular 
folder in /webapps and 'rm -r' the /work directory.

Michael McGrady wrote:
> Bill Siggelkow wrote:
> 
>> Hmmm ... well, it works for me under Struts 1.2; however I did notice 
>> that your <logic:equal> tag did not specify the required 'value' 
>> attribute.
>>
>> Here is the snippet I tested with:
>>
>>   <logic:present name="foo">
>>     <logic:equal name='foo' property='bar' value='baz'>
>>      Blah blah
>>    </logic:equal>
>>   </logic:present>
>>
>> Also, if I change to use the <logic:notPresent> it does fail as 
>> expected when it hits the <logic:equal> tag.
>>
>> Bill Siggelkow
>>
>> Michael McGrady wrote:
>>
>>> If a bean named 'actionForm' is not present and we have the following:
>>>
>>> <logic:present name='actionForm'>
>>>  <logic:equal name='actionForm' property='someProperty'>
>>>    Blah blah
>>>  </logic:equal>
>>> </logic:present>
>>>
>>> Then nothing inside <logic:present> should be evaluated, should it?  
>>> I am getting an error that says that there is no bean called 
>>> 'actionForm' for the <logic:equal> tag which I thought I avoided with 
>>> the <logic:present> tag.  What's with this?
>>>
>>> That is "conundrum", Jim Mitchell, and not what you were thinking!
>>>
>>> Michael
>>
>>
>>
> 
> One of those strange things, Bill, that I never could find on the page.  
> Finally dumped the page and rolled back to a few hours ago and am going 
> on with no difficulties.  Odd?  Sometimes it is not clear where the 
> glitch is and it is worth dumping some good time to get rid of some bad, 
> huh?
> 
> Michael


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


Re: conundrum.

Posted by Michael McGrady <mi...@michaelmcgrady.com>.
Bill Siggelkow wrote:

> Hmmm ... well, it works for me under Struts 1.2; however I did notice 
> that your <logic:equal> tag did not specify the required 'value' 
> attribute.
>
> Here is the snippet I tested with:
>
>   <logic:present name="foo">
>     <logic:equal name='foo' property='bar' value='baz'>
>      Blah blah
>    </logic:equal>
>   </logic:present>
>
> Also, if I change to use the <logic:notPresent> it does fail as 
> expected when it hits the <logic:equal> tag.
>
> Bill Siggelkow
>
> Michael McGrady wrote:
>
>> If a bean named 'actionForm' is not present and we have the following:
>>
>> <logic:present name='actionForm'>
>>  <logic:equal name='actionForm' property='someProperty'>
>>    Blah blah
>>  </logic:equal>
>> </logic:present>
>>
>> Then nothing inside <logic:present> should be evaluated, should it?  
>> I am getting an error that says that there is no bean called 
>> 'actionForm' for the <logic:equal> tag which I thought I avoided with 
>> the <logic:present> tag.  What's with this?
>>
>> That is "conundrum", Jim Mitchell, and not what you were thinking!
>>
>> Michael
>
>

One of those strange things, Bill, that I never could find on the page.  
Finally dumped the page and rolled back to a few hours ago and am going 
on with no difficulties.  Odd?  Sometimes it is not clear where the 
glitch is and it is worth dumping some good time to get rid of some bad, 
huh?

Michael


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