struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avinash Gangadharan <agangadha...@ucdavis.edu>
Subject RE: Conditional tag for method results
Date Wed, 18 Feb 2004 21:50:19 GMT
Exactly I thought so and that is why in my question I asked "if I can
replace the following with a much better looking tag library usage "
I wanted to make sure there is'nt something already out there which I can
simply use. Moreover I do think that the struts logic tag should have a
generic attribute which takes any runtime exression and evaluated it's
result for comparison.




-----Original Message-----
From: Gopalakrishnan, Jayesh
To: Struts Users Mailing List
Sent: 2/18/2004 1:33 PM
Subject: RE: Conditional tag for method results

You will need to create a simple custom tag for this.
Its pretty simple, & plenty of samples are available.


-jayash


-----Original Message-----
From: Avinash Gangadharan [mailto:agangadharan@ucdavis.edu]
Sent: Wednesday, February 18, 2004 1:20 PM
To: 'struts-user@jakarta.apache.org'
Subject: RE: Conditional tag for method results


I did look at those earlier, unfortunately I could not figure out how
can I
pass in a method call with a paramater passed to it, as the expression
for
comparison.
The tags allow bean properties, cookie , request parameter etc...
Could you tell me how can I use a method call with a parameter that I
pass
from within the JSP for evaluating the result.

Thx
A

-----Original Message-----
From: Niall Pemberton
To: Struts Users Mailing List
Sent: 2/18/2004 1:07 PM
Subject: Re: Conditional tag for method results

Yo can either use the Struts "logic" tags, or the standard tag library
(JSTL)

JSTL:  http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html
Struts Logic Tags:
http://jakarta.apache.org/struts/userGuide/struts-logic.html

Niall
----- Original Message ----- 
From: "Avinash Gangadharan" <agangadharan@ucdavis.edu>
To: <struts-user@jakarta.apache.org>
Sent: Wednesday, February 18, 2004 8:43 PM
Subject: Conditional tag for method results


> Hello All,
>     I'm fairly new to the world of struts so pardon me if this has
already
> been asked.
>
> Could someone tell me if I can replace the following with a much
better
> looking tag library usage:
>
> <% if( foo.method( "xyz" ) ) { %>
>   <html:submit value="Submit">
>       Submit
>   </html:submit>
> % } %>
>
> You can assume that foo exists in the scope of the page.
>
> Thanks and Regards
> Avinash
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
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