File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes want to get in java string Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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: 4726

<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: 4726

You might have to specify the class name in the "type" attribute of your logic:iterate tag.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: want to get in java string
 
Similar Threads
on logic:iterate tag
problem in accessing a list through a iterate tag.
how to apply continue statement in struts logic:iterate tag
How can retrieve the record values by using DynaProperty
Nested Iterate