Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

want to get in java string

 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in the following code i need to get the "description" in a java String,because i have to perform some string tokenizer action on it.how do i get it in string.

<logic:iterate id="element2" name="resultDestExcep" property="resultList">
<bean:write name="element2" property="description" />
</logic:iterate>

thanks.
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<logic:iterate id="element2" name="resultDestExcep" property="resultList">
<% String description = element2.getDescription(); %>
<bean:write name="element2" property="description" />
</logic:iterate>
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might have to specify the class name in the "type" attribute of your logic:iterate tag.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic