This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Struts and the fly likes want to get in java string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "want to get in java string" Watch "want to get in java string" New topic
Author

want to get in java string

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
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

Joined: Feb 05, 2003
Posts: 4727

<logic:iterate id="element2" name="resultDestExcep" property="resultList">
<% String description = element2.getDescription(); %>
<bean:write name="element2" property="description" />
</logic:iterate>


A good workman is known by his tools.
Marc Peabody
pie sneak
Sheriff

Joined: Feb 05, 2003
Posts: 4727

You might have to specify the class name in the "type" attribute of your logic:iterate tag.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: want to get in java string
 
Similar Threads
problem in accessing a list through a iterate tag.
How can retrieve the record values by using DynaProperty
how to apply continue statement in struts logic:iterate tag
Nested Iterate
on logic:iterate tag