aspose file tools*
The moose likes JSP and the fly likes type ForTokensTag is not applicable for the arguments (Object) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "type ForTokensTag is not applicable for the arguments (Object)" Watch "type ForTokensTag is not applicable for the arguments (Object)" New topic
Author

type ForTokensTag is not applicable for the arguments (Object)

Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Hello there,
I'm trying to display a kind of preview for a text. But on JBoss 4.2.2 I take the following error.

javax.servlet.jsp.JspException: ServletException in '/WEB-INF/jsp/home.jsp': Unable to compile class for JSP:

An error occurred at line: 54 in the jsp file: /WEB-INF/jsp/home.jsp
The method setItems(String) in the type ForTokensTag is not applicable for the arguments (Object)
51: <% // FocusOn - description%>
52:
53:
54: <c:forTokens var="token" items="${entry.description}" delims=" " end="200">
55: <cut value="${token}"/>
56: </c:forTokens>
57: ...


Stacktrace:
at org.apache.struts.taglib.logic.ForwardTag.doForward(ForwardTag.java:125)


The property's bean which I'm trying to access is a String type.


The code above is nested to this tag belowe




This comes out from the entity called during the iteration


What's the problem then??
Thanks in advance
[ August 11, 2008: Message edited by: Alessandro Ilardo ]

trying to decode a woman mind....
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Does the bean have a description property accessor that gives access to the member variable?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Alessandro Ilardo
Ranch Hand

Joined: Dec 23, 2005
Posts: 218
Of course



But the error doesn't say that cannot find that property, instead it says that the property is not a String.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61766
    
  67

Originally posted by Alessandro Ilardo:
Of course
Of course? If you don't give us the details, we can;t guess.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: type ForTokensTag is not applicable for the arguments (Object)