struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <tarun.ma...@iflexsolutions.com>
Subject RE: logic:present tag problem
Date Fri, 26 Sep 2003 07:16:10 GMT
Thanks 
	Actually I was looking for a or operator is it available in new version of struts tag library?

Regards,
Tarun Matai 




-----Original Message-----
From: muzammil shahbaz [mailto:muzammil.shahbaz@kapscomputing.com]
Sent: Friday, September 26, 2003 11:27 AM
To: struts-user@jakarta.apache.org
Subject: RE: logic:present tag problem


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:  tarun.matai@iflexsolutions.com
[SMTP:tarun.matai@iflexsolutions.com]
		Sent:  Friday, September 26, 2003 10:30 AM
		To:  struts-user@jakarta.apache.org
		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:
struts-user-unsubscribe@jakarta.apache.org
		For additional commands, e-mail:
struts-user-help@jakarta.apache.org


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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message