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

8 comments
Comment actions Permalink

Juergen wrote:

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


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

0
Comment actions Permalink

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 ?

0
Comment actions Permalink

Juergen wrote:

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 ?


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

0
Comment actions Permalink

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.

0
Comment actions Permalink

Juergen wrote:

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.

be sure you file the bugs!

0
Comment actions Permalink

Thanks,

bugs is submitted und fixed in #1116 :)
So they say....

0
Comment actions Permalink

Juergen wrote:

Thanks,

bugs is submitted und fixed in #1116 :)
So they say....

So it is :)

--
Igor Kuralenok
Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

I'm not sure I've got this right.

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'


0

Please sign in to leave a comment.