Accessing jsp variable in .jhtml file

Discussions

General J2EE: Accessing jsp variable in .jhtml file

  1. Hi,
    Please see this code

    <%!
    int i = 10;
    public String str = "Office";
    %>

    <droplet bean="HorizontalNavigation">
    <param name="CurrentSection" value="<valueof param="<%=str%>"></valueof> ">
    <param name="CurrentDomain" value="Home">
    </droplet>




    I am trying to access the String "str" inside the droplet but I always get null. Do you know how I can access that variable?

    Uma
  2. need help[ Go to top ]

    push