Hi all
I am using Struts 2.0,hibernate,spring
i am getting null pointer exception in the following line...
getRequest().setAttribute("currencyList", currencyService.getCurrencyList());

Jsp where this value need to be set is
<tr>
<td class="label" >Currency:<span class="required">*</span></td>
<td><s:select name="currencyCode" headerKey="" headerValue="Select" id="currencyCode" list="#request.currencyList" listKey="id" listValue="currency_code" cssClass="loginBox" ></s:select>
</td>
</tr>

Criteria to reterive the value is as follows:
public List<Currency> getCurrencyList(){
Criteria criteria = getSession().createCriteria(Currency.class);
criteria.addOrder(Order.asc("currency_code"));
return criteria.list();
}
columns in db are
id,currency_code,country

Please Help
Thanks
Kirti