jsp:attribute - unable to resolve symbol XXX

Hi,

I am on a roll today - so lets see if I can get my jsp pages "green" ...


I have a tag that is used to create tabs on my web pages, I mark each tab using a jsp:attribute, like this:




The tag file can then iterate through each tab, doing the various CSS/Javascript bits it needs to turn them on/off. Like this:



The problem is that IDEA 5.1.1 gives me an error about the jsp:attribute lines, saying "Cannot resolve symbol Process" in the example above.

Is this a structure that IDEA supports? Or am I perhaps bending the JSP spec a little too much and thus confusing it...

Thanks in advance for any thoughts on this
Chris



Attachment(s):
attach2.txt
attach1.txt
3 comments
Comment actions Permalink

Well done, it seems you've found an omission in the IDEA JSP editor.

There are basically three ways to use jsp:attribute:
1) in concert with jsp:element, to dynamically build content
2) as a way to specify fragment values for tags
3) to set dynamic attributes (what you're doing, and what's broken)

The JSP 2.0 spec says (section 5.10):
-


...
The behavior of the <jsp:attribute> standard action varies depending on the
type of attribute being specified, as follows:
...
If the custom action accepts dynamic attributes (Section JSP.7.1.8), and
the name of the attribute is not one explicitly indicated for the tag, then
the container will evaluate the body of <jsp:attribute> and assign the computed
value to the attribute using the dynamic attribute machinery. Since the type
of the attribute is unknown and the body of <jsp:attribute> evaluates to
a String, the container must pass in an instance of String.
...
-



I have entered a new issue in the Jetbrains JIRA:
http://www.jetbrains.net/jira/browse/IDEA-10588

I suggest you add your vote, description of your usage and example files.




0
Comment actions Permalink

Thanks - I will look forward to it being fixed.

0
Comment actions Permalink

It should be fixed in 6.0.4

Chris Kimpton wrote:

Thanks - I will look forward to it being fixed.


--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

Please sign in to leave a comment.