jsp:useBean ignored ? #1113
If I use a "<jsp:useBean" in my jsp page IDEA #1113 cannot resolve the "<jsp:useBean id" Attribute.
No autocompletion is available and variable is marked red.
same project, no problem in #1104
Please sign in to leave a comment.
Juergen wrote:
works fine over here, make sure your web module is setup correctly with
the proper paths... heck make sure you're using a web module and not a
java module.
R
Thanks for the response. I tried something and now it works.
Won't work:
<std:html title="xyb" >
<jsp:useBean id="beanid" scope="request" type="com.java.Class" />
Did work:
<jsp:useBean id="beanid" scope="request" type="com.java.Class" />
<std:html title="xyb" >
So an error from me ?
Juergen wrote:
That is strange, the fact that you have a custom tag before a useBean
would bust the custom tag, and it doesn't look like the custom tag
depends on the bean, or does it and I don't see it???
If it doesn't I suggest you replicate the usecase, and file it as a bug,
perhaps include a small project so JetBrains can see what's going on.
R
Your're right. The custom tag does not depend on that bean. Because of that you can "logically" change the order. But IDEA (currently) only works with useBean first. Tomcat doesn't matter.
Juergen wrote:
be sure you file the bugs!
Thanks,
bugs is submitted und fixed in #1116 :)
So they say....
Juergen wrote:
So it is :)
--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"
I'm not sure I've got this right.
<%= myClass.toString() %>]]>IDEA is supposed to recognize the jsp:useBean defined beans? Right?
I'm using build#2111. I declare my beans like this:
... so far so good (no errors in idea) ... later in my jsp-page i use the bean:
... not ok. myClass turns red... error message: Cannot resolve symbol 'myClass'