Under struts 1.0, try as follows:

<logic:present name="a" scope="session" >
do certain operation
</logic:present>

<logic:present name="b" scope="session" >
do certain operation
</logic:present>

However, the code can be optimized by using logic:OR tag, which is not
the part of this version.

Regards,
Muzammil
                ----------
                From:  [EMAIL PROTECTED]
[SMTP:[EMAIL PROTECTED]
                Sent:  Friday, September 26, 2003 10:30 AM
                To:  [EMAIL PROTECTED]
                Subject:  logic:present tag problem

                Hi,
                        I have a query
                        if(a || b )
                        {
                                do certain operation
                        }
                        
                        a or b will be attributes present in the session
object, how can i use logic:present tag to perform this operation.

                Regards,
                Tarun


                DISCLAIMER:
                This message contains privileged and confidential
information and is intended only for the individual named.If you are not
the intended recipient you should not
disseminate,distribute,store,print, copy or deliver this message.Please
notify the sender immediately by e-mail if you have received this e-mail
by mistake and delete this e-mail from your system.E-mail transmission
cannot be guaranteed to be secure or error-free as information could be
intercepted,corrupted,lost,destroyed,arrive late or incomplete or
contain viruses.The sender therefore does not accept liability for any
errors or omissions in the contents of this message which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version.


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

Reply via email to