Hello,
This problem arise with some web container : they have some trouble to convert
a String to an Object ;-(.
In your case, this seems to happen in tags
<tiles:put name='content' content='/show/articleList.do'/>
Both methods setContent(String) and setContent(Object) exist, but container
doesn't find the appropriate one.
Possible solutions :
* remove one of the two methods (but this could lead to problems if you use it
elsewhere) and recompile Tiles
* try something like : content='<%=(Object)"/show/articleList.do"%>'
Cedric
storck wrote:
> Hi,
>
> I use Struts from the nighly build 04.11.2001.
>
> My template looks like the following:
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <html:html locale="true">
> <html>
> <html:base/>
> <body background='graphics/blueAndWhiteBackground.gif'>
> <table width='610'>
>
> <tr><td><tiles:get name='content'/></td></tr>
>
> </table>
> <html:errors/>
> </body>
> </html>
> </html:html>
>
> and my JSP ShowArticleList wich uses that template
>
> <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %>
>
> <tiles:insert template='/common/template.jsp'>
> <tiles:put name='content' content='/show/articleList.do'/>
> </tiles:insert>
>
> The action /show/articleList.do is defined like
>
> <action name="articleListBean" scope="session" path="/show/articleList"
> unknown="false" type="com.tecmath.cms.mt.struts.ArticleListAction"
> parameter="show">
> <forward name="success" path="/tmpl/articleListCont.jsp"/>
> </action>
>
> and /tmpl/articleListCont.jsp is
>
> <%@ taglib uri='/WEB-INF/struts-template.tld' prefix='template' %>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
>
> <UL>
> <logic:iterate id="article" name="articleListBean" property="articles">
> <LI>
> <html:hidden name="article" property="id"/>
> <html:link page="/ArticleDetails.jsp"
> paramId="articleId"
> paramName="article" paramProperty="id">
> <bean:write name="article" property="articleNumber"/>
> </html:link>
> (<bean:write name="article" property="materialGroup"/>)
> <bean:write name="article" property="price"/> <bean:write name="article"
> property="currency"/>
> </LI>
> </logic:iterate>
> </UL>
>
> If I excute the ShowArticleList.jsp I get the next error. Can someone tell
> me why ?
>
> Error: 500
> Location: /iwf-test/ShowArticleList.jsp
> Internal Servlet Error: D:\Programme\Entwicklung\IBM\VisualAge for
> Java\ide\project_resources\Apache_Tomcat_Test_Environment\webapps\iwf-test\S
> howArticleList.jsp(3,4) Unable to convert a String to java.lang.Object for
> attribute content
>
> --
> To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>