History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEA-17006
Type: Bug Bug
Status: Open Open
Assignee: Maxim Mossienko
Reporter: Jan Moravec
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
IDEA: Feedback

Passing class to the JSP tag in its attribute

Created: 30 Jan 08 11:28   Updated: 30 Jan 08 14:28
Component/s: J2EE.JSP

File Attachments: None
Image Attachments:

1. bug.jpg
(179 kb)
Environment: win2000

Build: 7,670
Severity: Medium


 Description  « Hide
Hello,

Intellij 7.0 Selena #7670.

I have been using Stripes for web-development. Stripes comes with a tag library and a couple of the library's tags accept a beanclass attribute with a java.lang.Object value. The expected value is either a FQCN of the action bean, or the action bean class itself. I normally use the second option because it makes refactoring much easier and keeps the code cleaner.

For some reason, when I pass a class using a scriplet like so:

beanclass="<%= SomeClass.class %>"

the entire scriptlet is marked as red as if there was an error. If I replace the scriptlet with another scriptlet such as:

beanclass="<%= "blabla" %>"
or
beanclass="<%= some_existing_instance_variable %>"

the error disappears. So the problem has something to do with a class literal being used inside the scriptlet.

See the attached picture.

Thank you.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.