Label field problem in the treenode Tag. (Struts2/Ajax)

Posted by ryan on Stack Overflow See other posts from Stack Overflow or by ryan
Published on 2010-04-30T07:03:40Z Indexed on 2010/04/30 7:07 UTC
Read the original article Hit count: 134

Filed under:
|
|
|

I'm using struts as a framework for a web-app. The following code runs inside a loop where I access the database to retrieve values to be used as nodes for a tree.

<s:set name="categoryValue" value= "%{'<%=rs.getString("category")%>'}"> 
</s:set>
 <sx:treenode id="child1" label ="%{#categoryValue}"/> 

The error I get is

"/jsp/tree.jsp(249,65) equal symbol expected" 

However if i give

<s:set name="categoryValue" value= "%{'Test'}">

the value Test is obtained.

Can anyone tell me how to set the value of the 'label' with strings?

© Stack Overflow or respective owner

Related posts about struts2

Related posts about AJAX