Accessing jsp variable in .jhtml file


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">

    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?

  2. need help[ Go to top ]