You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Richard Backhouse <ri...@hotmail.com> on 2000/06/30 14:27:27 UTC

Bug in new struts:link tag

I couldn't get the new struts:links tag to work with a supplied map 
property. Looking at the code I see a couple of bugs :

Line 296/297 :

Map map = null
if (map == null)
    throw new JspException
		(messages.getMessage("linkTag.bean", name));

So it always throws a jsp exception.

Line 307 :

bean = method.invoke(map, new Object[0]);

Parameters are wrong way round. should be :

map = (Map)method.invoke(bean, new Object[0]);


Richard Backhouse
Oak Grove Software

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com