[opencms-dev] Do not display a module
Le Nouveau
opencms at lenouveau.fr
Tue Aug 13 17:56:17 CEST 2013
3rd Solution : pageContext.getOut().clear();
Problem : I'm not really sure of the exact erased content, but it seems to
work well for me. To be used at the very end of your JSP.
If someone has more details about the real effect (and especially if it
only erase my JSP content), pls tell me.
Regards,
LeNouveau
2013/8/9 Le Nouveau <opencms at lenouveau.fr>
> Hi,
>
> I have a simple module listing displaying a list. But when the list is
> empty, I would like the module not to display.
> So, is it possible to not display a module ?
>
> 1st solution : a big "<c:if />"
> Problem : I don't have data early enough.
>
> 2nd solution : throwing an Exception
> Problem : It's pretty ugly ^^'
>
> 3nd solution : <please enter your response>
> Problem : none
>
> Thanks for advises !
> Have a nice day.
> LeNouveau
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20130813/1937425e/attachment.htm>
More information about the opencms-dev
mailing list