Hello,

I should think that a tag is the better way...
if you use struts there's a library "logic" which has
a tag <present> in it to test a boolean value.
I think it is also an example of tag creation in the
Sun documentation about J2EE Servers (section JSP or
tag handler, I don't remember).

Hope it helped,
Vincent


 --- Sudarson Roy Pratihar
<[EMAIL PROTECTED]> a �crit : > Date:
 Wed, 6 Mar 2002 10:42:43 +0530
>
> Hi All,
>
> I have some jsp tags (say <mytag param1 param2/>).
> Now I want to use it conditionally again and again
> in my jsp like this:
>
> if(someBooleanVariable)
> {
>     use <mytag param1="val1" param2="val2"/>
>     do some other html things
> }
>
> else
> {
>     something else
> }
>
> As these things have to be done in a number of place
> within same jsp, I'm thinking about some method, say
> myMethod(val1, val2, someBooleanVariable).
>
> My question is how can I do this ? Or can I make
> some other tag that will server the purpose of this
> method ?
>
> Any suggestion is welcome.
>
> TIA,
> Sudarson
>
>

=====
Vincent BUI,
[EMAIL PROTECTED]

PS : la signature de propagande qui suit n'est pas de mon fait.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to