We have been trying to remove unused params from the tags, and make
them consistent (like adding a 'var' attribute to 'url' tag, and
deprecating 'id'), in this case, the 'id' attribute should be removed.
All it takes is to add an annotation to the tag class.

musachy

On Tue, Jul 29, 2008 at 8:43 AM, stanlick <[EMAIL PROTECTED]> wrote:
>
> I have been away from Struts 2 for many months and was prompted with this
> question yesterday:
>
> Why does this code throw a null pointer exception?
>
> <s:url action="employeeAction_subsetByDepartment">
>    <s:param id="department" value="%{#attr.currRow.department}"/>
> </s:url>
>
> After jacking around with it for nearly an hour I realized that id should be
> name!  It seems the adjoining tags were using the id attribute and this
> developer had applied common sense and used id here as well.  Now I realize
> the JSTL/OGNL debate has caused much consternation among developers and I
> have sort of gotten over that whole mess.  But this tipped my scale!  What
> gives with the Struts 2 tag library?  Seriously, step outside yourself and
> think about it before you answer.  Is this a wart on the framework?
>
> Peace,
> Scott
> --
> View this message in context: 
> http://www.nabble.com/Is-this-a-wart-on-the-framework--tp18711301p18711301.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

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

Reply via email to