You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Marchioni Francesco <f....@pride.it> on 2007/10/18 13:41:31 UTC
[beginner] need to use logic:equal with request attribute
Hi all,
I have an action class which sets some attributes
request.setAttribute("pValueIn", vFlagms);
then it forwards to a jsp page.
Now I'd like to use logic:equal (or another struts tag) which controls the
value of this field
<logic:equal name="pValueIn" value="VC4S">
OK
</logic:equal>
but unfortunately I can see "OK" get always printed. Whatever value is the
parameter. (Even with another parameter name)
Also tried with
<logic:equal name="pValueIn" value="VC4S" scope="request">
but nothing..............
any help ??????
--------------------------------------------------------------------------------------------------------
Le informazioni trasmesse possono contenere documenti confidenziali e/o materiale riservato; sono
quindi da intendersi esclusivamente ad uso della persona e/o società a cui sono indirizzate.
Qualsiasi modifica, inoltro, diffusione o altro utilizzo, relativo alle informazioni trasmesse, da parte
di persone e/o società diversi dai destinatari indicati, è proibito ai sensi della legge 196/2003.
Qualora questa mail fosse stata ricevuta per errore, si prega di contattare il mittente e cancellarne
il contenuto.
--
Privileged/Confidential Information may be contained in this message. If you are not the addressee
indicated in this message (or responsible for delivery of the message to such person), you may not
copy or deliver this message to anyone. In such case, you should destroy this message and kindly
notify the sender by reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind. Opinions, conclusions and other information in this
message that do not relate to the official business of my firm shall be understood as neither given
nor endorsed by it.
--------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: [beginner] need to use logic:equal with request attribute
Posted by Antonio Petrelli <an...@gmail.com>.
2007/10/18, Marchioni Francesco <f....@pride.it>:
>
> Hi all,
> I have an action class which sets some attributes
>
> request.setAttribute("pValueIn", vFlagms);
>
> then it forwards to a jsp page.
>
> Now I'd like to use logic:equal (or another struts tag) which controls the
> value of this field
>
> <logic:equal name="pValueIn" value="VC4S">
> OK
> </logic:equal>
>
> but unfortunately I can see "OK" get always printed. Whatever value is the
> parameter. (Even with another parameter name)
It does not make sense, the way you specify "logic:equal" is correct,
but....
I once had a similar problem, and in that case I forgot to specify the
taglib in the JSP page.
Are you sure you specified the "logic" tag library correctly?
Antonio