for (int i=0; i<symbols.length; i++) {
symbolsAsCollection.add(symbols[i]);
}
/* Invoke the remote service using the local service facade */
StockNewsFacadeDelegate stockNewsFacade =
new StockNewsFacadeDelegate();
Collection stockNews = stockNewsFacade.getStockNews(
symbolsAsCollection, maxHeadlines);
/* Format response */
request.setAttribute("stockNews", stockNews);
request.setAttribute("maxHeadlines", new Integer(maxHeadlines));