File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes conditional rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "conditional rendering" Watch "conditional rendering" New topic

conditional rendering

Olciap Berge

Joined: Sep 03, 2010
Posts: 6
Is there a way to render some form or link only when some condition is fulfilled?
I mean by using something like tag property, like it was solved in JSF (for example <form id=".." ... renter="here condition">)
David Newton

Joined: Sep 29, 2008
Posts: 12617

Not in a standard tag, but you could write your own custom tags, or just wrap chunks in if tags.
Ankit Garg

Joined: Aug 03, 2008
Posts: 9465

Olciap Xx please check your private messages for some administrative matter...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
I agree. Here's the link:
subject: conditional rendering
It's not a secret anymore!