Why not just supply a list getter in your action and
set its value to the roleDao's findAll result?

In general I don't think using DAO functionality on
the view side is a particularly good idea anyway, but
that's just me :)

d.

--- Paul <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Having some issues getting this the above working. I
> have a defined spring bean as follows:
> 
> <bean id="roleDao"
>
class="com.paul.project.system.dao.impl.RoleDaoImpl">
>     <property name="entityManagerFactory"
> ref="entityManagerFactory"/>
> </bean>
> 
> 
> Now the RoleDaoImpl contains a method 'findAll()'
> which I would like to iterate over the results and
> display them.
> 
> In my jsp I have tried:
> 
> <s:iterator value="roleDao.findAll()">
>             <s:property value="name"/>
>             <s:property value="description"/>
> </s:iterator>
> 
> But I don't think that would work since roleDao
> isn't on the stack?
> 
> I've tried declaring:
> <s:bean
> name="com.paul.project.system.dao.impl.RoleDaoImpl" 
> id="roleBean"/>
> 
> <s:iterator value="roleBean.findAll"">
> etc.etc.
> 
> Basically I have a userform for an admin, that has a
> UserModel on the stack. Part of the userform though
> is selecting which user roles (RoleModel) to add the
> user to and I need to render all available roles. I
> think my issue is strictly syntax? I hope someone
> could point me in the right direction?
> 
> Regards,
> Paul


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to