page1
public class QuoteQuery {
private String sym;
private Date quoteDate = new Date();
public Date getQuoteDate() {
return quoteDate;
}
public void setQuoteDate(Date quoteDate) {
this.quoteDate = quoteDate;
}
public String getSym() {
return sym;
}
public void setSym(String sym) {
this.sym = sym;
}
public int getStockValue() {
StockService stkSrv = ???;
return stkSrv.getStockValue(this);
}
}
How to get access to the "stockService" bean?