nesting standard jsp tags

Discussions

Web tier: servlets, JSP, Web frameworks: nesting standard jsp tags

  1. nesting standard jsp tags (2 messages)

    Hi All,

    While nesting standard jsp tags the jsp engine is processing to only one level(in weblogic5.1). Can any one please tell me how to change this to process multiple levels.

    My JSP code is
    <jsp:useBean id="nameSpacePersonal" class="classes.NameValueBean" scope="session" />
    <jsp:useBean id="sessionUser" class="classes.User" scope="session" />
    <jsp:getProperty name="sessionUser" property="siteuserId" />
    <jsp:getProperty name="sessionUser" property="siteuserSgn" />
    <jsp:setProperty name="nameSpacePersonal" property="siteuserSgn" value="<jsp:getProperty name="sessionUser" property="siteuserSgn" />" />


    Browser source is
    2
    2
    <jsp:setProperty name="nameSpacePersonal" property="siteuserSgn" value="2" />

    Thanks,
    Srinivas.J
  2. Srinivas, try this instead:

    <jsp:setProperty name="nameSpacePersonal" property="siteuserSgn" value="<%= sessionUser.getSiteuserSgn() %>"/>

    Gordon.


  3. Hi Gordon,

    Thank you very much for your suggession. It works.

    Srinivas.J