Hello,

When I use the following code in mij JSP page, then I get an error. (a bug maybe???). 
Can anyone tell me what I can do to make it work?
________________________________________________________________________

<mm:listnodes type="<%= nodetype %>" orderby="title">
        <% counter++; String optionName = ""; %>
        <mm:field name="number" jspvar="lchosenNodeID" vartype="String" write="false">
                <option value="<%= lchosenNodeID %>"><mm:fieldlist fields="<%= 
displayfields %>">
                <mm:fieldinfo type="value" jspvar="locValue" vartype="String" 
write="false">
                        <% optionName = locValue; %>
                        <% if ( optionName.length() > 66 ) { optionName = 
optionName.substring(0,65) + "... "; }%>
                        <%= optionName %>
                </mm:fieldinfo>
                <mm:last inverse="true"> - </mm:last></mm:fieldlist></option>
        </mm:field>
</mm:listnodes>
________________________________________________________________________

500 Internal Server Error
Error parsing JSP page
Syntax error in source
add_node.jsp.java:321: Undefined variable: locValue (JSP page line 51)

  optionName = locValue; 

               ^

1 error


Thanx in advance,
regards Sandra Hibma


---------------------------
Teleac/NOT
Sandra Hibma
Web Application Developer
[EMAIL PROTECTED]
035 - 62 93 118
http://www.teleacnot.nl
---------------------------




Reply via email to