Mauro Marra

Greenhorn
+ Follow
since Nov 15, 2005
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mauro Marra

Hi,
I came up to the same conclusions.
I'm doing an application with nested beans, where the client can upload one or more file depending on how many documents bean are nested in my Form.
So after a post I go trough the collection of form files to check the size of each file individually.
It works, but I don't know if there is a better way to do this.

What do you think
18 years ago
Hi,

I'm trying to reference the property of a nested bean in a struts html:file tag.
Here is my code :<c:forEach items="${woForm.services}" var="service" varStatus="servStatus">
<c:forEach items="${service.documents}" var="document" varStatus="docStatus">
<tr>
<td>
<html:file name="document" property="theFile" size="30"/>
</td>
<td>
<html:text name="document" property="docCode" size="30"/>
</td>
</tr>
</c:forEach>
</c:forEach>

While the tag html:text works fine, the html:file gives me the following error:
"javax.servlet.ServletException: No getter method for property theFile of bean document"
Anyway my bean document has got getter and setter methods for the property

Can you help please
18 years ago
JSP