File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts tag

 
Mauro Marra
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Struts tag is probably expecting document to be a scripting variable rather than a scoped variable. The JSTL/EL does not create scripting variables.

In future posts, please be sure to enclose any posted code in UBB code tags. (See the CODE button on the entry page).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic