- This topic has 5 replies, 2 voices, and was last updated 20 years, 8 months ago by Riyad Kalla.
-
AuthorPosts
-
inksystemsMemberHi Folks!
Apparently after i have upgraded the plugin to the latest version it somtimes throws some strange error on inherited properties.
Let’s say i have a class Class1 with the public method getMessage(). It has been extended by Class2 that has in its turn public getFullName() method. Then it is extended by List1 class.
If i use it within JSP as bean with
<jsp:useBean id=”reg” scope=”request” class=”List1″>and then try to refer to it as
<jsp:getProperty name=”reg” property=”message” />
i’ve got an error
List1.getMessage()
that’s it. No more explanation about what’s wrong with List1.getMessage().
It does not happen everytime.
Can anyone comment on this?
Best regards,
Igor.
Riyad KallaMemberIgor,
Thank you for the detailed report and step-by-step walkthrough. I was able to reproduce this problem very easily and will send it off to S/M.
inksystemsMemberRiyad,
thanks a million.
One more thing, i reported this problem before but i’m afraid it was not addressed.
MyEclipseIDE does not recognize the relative path to the .tld file despite AS does.
It means that if i place taglib.tld into WEB-INF directory i cannot refer to it as <taglib-location>taglib.tld</taglib-location> which is pretty much normal.
Instead it only picks it up if it is reffered as <taglib-location>/WEB-INF/taglib.tld</taglib-location>.
Best regards,
Igor.
inksystemsMemberOne more addndum to the above issue. Apparently it happens not only with inherited properties but with local public properties too.
Just added two more get methods into the bean class and JSP started to throw the same error.Intersting enough that it only happens with the las to get methods i’ve added. If i add jsp:getProperty tags for both the error thrown only for the first one referenced in JSP file.
Best regards,
Igor.
Riyad KallaMemberIgor,
I will look into your last post, but your 2nd to last one about relative references to the taglibs, I don’t find this a bug necessarily (if you do, or can provide an example as to why you think it is, please let us know). AFAIK the reason the path should not be relative (and probably why ME doesn’t use relative paths) is because the only garunteed root of a project is from the webroot. If you use a relative path, it may work on one app server, or one IDE that reads from WEB-INF as the relative root, but will break completely with other app servers and IDEs that read the root from the webroot.I almost see using relative paths as a bad enough practice as to consider it an ‘error’; but again, I am not experienced in all platforms, so I could be missing some really glaring thing. If I am please point it out.
Riyad KallaMemberIgor,
Scott gave me an update that this report has been opened in the bug tracking system and the test project I made attached to it, so we are looking into it. -
AuthorPosts