Hello
I'am starting to try to use indexed property.
But i got an error.
Here what i have
- The manager
package com.nsa.n74.tvshowtrackerweb.servlet.stripes;
public class TvshowManager
public List<TvShow> getAllTvShows()
{
List<TvShow> tvshows;
testDB tt= new testDB();
tvshows = tt.getTenTvShow();
tt.closeSession();
return tvshows;
}
-My jsp : linktvshow.jsp
<jsp:useBean id="tvshowManager" scope="page"
class="com.nsa.n74.tvshowtrackerweb.servlet.stripes.TvshowManager"/>
<stripes:form action="/linkTvShow.action">
<c:forEach items="${tvshowManager.AllTvShows}" var="tvshow" varStatus="loop">
<tr>
<td><stripes:text name="tvshows[${loop.index}].id" value="${tvshow.id}"/></td>
<td><stripes:text name="tvshows[${loop.index}].name" value="${tvshow.name}"/>
</td>
</tr>
</c:forEach>
-My action bean
@UrlBinding("/linkTvShow.action")
public class linkTvShowWithitunesIdBean implements ActionBean
private List<TvShow> tvshows = new ArrayList<TvShow>();
@ValidateNestedProperties ({
@Validate(field="id", required=true),
@Validate(field="name", required=true), })
public List<TvShow> getTvshows() {return tvshows;}
public void setTvshows(List<TvShow> tvshows) {this.tvshows = tvshows;}
When i call my jsp page i got that :
javax.el.PropertyNotFoundException: The class
'com.nsa.n74.tvshowtrackerweb.servlet.stripes.TvshowManager' does not have the
property 'AllTvShows'.
at javax.el.BeanELResolver.getBeanProperty(BeanELResolver.java:547)
at javax.el.BeanELResolver.getValue(BeanELResolver.java:249)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at com.sun.el.parser.AstValue.getValue(AstValue.java:118)
at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:192)
at weblogic.servlet.jsp.ELHelper.evaluate(ELHelper.java:32)
at jsp_servlet.__linktvshow._jspService(__linktvshow.java:160)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
Or the Class TvshowManager does have a getAllTvShows public method.
Could you please help me on this one ?
thanks
Nicolas
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users