Hi
I have two session beans with conversation scope.
the former accept a query and parse it and then create a result set like jdbc reslt set and after that redirect the current page to result page.
I want result page to have its own session bean. so I outject the resultset in first session and inject it in second one.
but in second session bean, how can I populate my arraylist with result set?
(my result set acts just like jdbc result but it works on a custom database not a real database)
class SearchAction implements Search{
@Out MyResultSet resultSet;
public String doSearch(){
//doing search ....
resultSet = searcher.find("...");
return "resultSearch";
}
}
class ResultSearchAction implements ResultSearch{
private List resultList;
@In
MyResultSet resultSet;
public void setup(){
while(resultSet.next()){
resultList.add(resultSet.get());
}
}
}
Mark it @Create?