Hi,
I have defined a custom tag and I need obtain some bean object instance.
The next code is used:
// trgName have quotes now ....
trgName = trgName.substring(1, trgName.length() - 1); // remove
quotes
trgBean = RequestUtils.lookup(pageContext, trgName, trgScope);
if(null == trgBean)
{
// TODO log + error
throw new JspException("Can't obtain targetBean!");
}
and working, but when quotes are not removed from the string trgName
RequestUtils.lookup return null.
I am using last beta version of struct library.
For me is that behaviour really strength, because in for example WriteTag
(from bean) is practically same code in use and working. :-)
best regards
Juraj Burian
p.s. be kindly please, my English is really terrible :-)
p.s2. I thing that my tag can by used commonly, What is necessary to do, for
that?
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>