On 21.06.2005, at 21:03, anthony rogers wrote:


Hello all...
I bet this is a simple one...
I cant seem to find the xml jsp call for if/else...

I have a page that has some data on it. And I can get the state of the data
like this no problem:

        <jsp:getProperty name="QTBeanId" property="video_compressing" />

But how do I wrap an if/else around this xml jsp:getPropery? The old way I
would just do the following;

<% if(QTBeanId.getVideoState()) { %>
        ...Compressing HTML mumble...
<% } else { %>
        ...Video Compressed...
<% } %>

None of this jazz works with the jsp:root tag stuff; its not even happy
about the <% %> tags. That's fine with me- just wondered how I can do an
if/else in xml jsp style?

Any help would be great...



Hi Ant,


  <c:if test="${fn:length(userNameBean.name) gt 0}" >
    <jsp:directive.include="response.jsp" />
  </c:if>

found at http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/JSPX3.html

Regards
Boris Kraft
---------------------------
Magnolia Content Management
http://www.magnolia.info/
---------------------------


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/community/developer/mailinglists.html
----------------------------------------------------------------

Reply via email to