Hello, i had a similar problem,
u may need a concrete implementation for your
property
something like: 

private List<Story> stories = new LinkedList<Story>();

public List<Story> getStories() { return stories; }

and make sure to override toString() in your Story class...

don't know what else to tell ya.

Good Luck...:)


Roberto Nunnari wrote:
> 
> Hello.
> 
> I have an action with a getter for a List.
> In the execute method of the action I can verify the list is not empty.
> But in the jsp view, at times it reports an empty list.
> 
> 
> the action:
> public class StorySearch extends ActionSupport {
>      private List<Story> stories = null;
>      ...
>      public String execute() throws Exception {
>          ...
>          stories = dataManager.searchStories(...);
>          for (Story story : stories) {
>              System.out.println(" "+story.getId());
>          }
>          return SUCCESS;
>      }
> 
>      public List getStories() {
>          return stories;
>      }
> 
> 
> the JSP:
> <c:url var="storyURL" value="/StoryView.action"/>
> <display:table name="${stories}" requestURI="storySearch.action">
>      <display:column property="id" href="${storyURL}" paramId="id"/>
>      <display:column property="title"/>
>      <display:column property="text"/>
>      <display:column property="link" autolink="true"/>
>      <display:column property="accessCount" sortable="true"/>
>      <display:column property="creationDate" sortable="true"/>
>      <display:caption>This is the table caption</display:caption>
> </display:table>
> 
> 
> Any hints?
> Thank you.
> 
> -- 
> Robi
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/properties-at-times-not-found-tf3953428.html#a11219495
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to