Hi,
you can do this in this way:
<bean:define id="step">
<bean:write name="STANDARDQUERY" property="step"/>
</bean:define>
<logic:greaterThan name="STANDARDQUERY" property="currentStep" value="<%=step%>">
<html:submit property="submit.stepBackward"> <bean:message
key="standardquery.button.stepBackward"/></html:submit>
</logic:greaterThan>
Regards,
Frank
-----Urspr�ngliche Nachricht-----
Von: Christian Riedel [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 20. April 2004 08:35
An: [EMAIL PROTECTED]
Betreff: How to use <logic:lessThan> with non-constant values?
Hi list,
first of all sorry for the double-post, I had forgotten to put the
subject of my first post in English as well - as you should have noticed.
I am currently working on an application to generate database queries.
This creation dialog is distributed over several pages ... From the 2nd
page on I want to display a "back"-nutton and until the last but one
page I want a "next"-button to be displayed.
The first thing is not so difficult:
> <logic:greaterThan name="STANDARDQUERY" property="currentStep" value="1">
> <html:submit property="submit.stepBackward"> <bean:message
> key="standardquery.button.stepBackward"/></html:submit>
> </logic:greaterThan>
this works quite fine. But how can I distinguish whether the last page
is already reached or not? To say this I need to compare the values
currentStep and steps (for both of which an attribute in the bean is
available). But in all <logic:...> tags I need to specify a constant
value. Here's my problem - both values I want to compare are not
constant but bean attributes.
Is there a way to get it working the way I want (without rewriting the
entire app ;-) )?
Help would be appreciated
TIA
Christian
--
To reply to this posting directly use the following address and
remove the 'NO-SPAM' part: [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]