IDEA 5, JSTL, Struts taglib validation problem

Is there a way to turn off error notification when
a taglib references a local resource that cannot be
found? I'm seeing a red "Cannot resolve symbol" error
for tags like:

<c:url value="/shop/viewCategory.do?categoryId=DOGS"/>

The value in this case is a Struts Action that IDEA
could only know about if it read web.xml/struts-config.xml.
I can see why IDEA doesn't want to know about every
web framework out there, but there should be a way to
tell it to ignore these errors.

3 comments

If web.xml is available then IDEA knows about the servlet reference.

Joachim Martin wrote:

Is there a way to turn off error notification when
a taglib references a local resource that cannot be
found? I'm seeing a red "Cannot resolve symbol" error
for tags like:

<c:url value="/shop/viewCategory.do?categoryId=DOGS"/>

The value in this case is a Struts Action that IDEA
could only know about if it read web.xml/struts-config.xml.
I can see why IDEA doesn't want to know about every
web framework out there, but there should be a way to
tell it to ignore these errors.



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

0

I believe the web app is set up correctly, web.xml is
available/configured as a resource.

So if a servlet is mapped to "*.do", it will figure
that out? The error I am getting is that it doesn't
know about either "shop" or "viewCategory.do".

<c:url value="/shop/viewCategory.do?categoryId=DOGS"/>

Struts, SpringMVC and most other frameworks do not
map actions as servlets in web.xml, they map to a
prefix or suffix and use a secondary xml file to
handle URI->Action mapping internally.

0

IDEA resolves link to servlet (not to page it will use for this URI),
controller servlet mapping should present in any framework in web.xml.
File JIRA issue with sample project demonstrating the problem attached.

Joachim Martin wrote:

I believe the web app is set up correctly, web.xml is
available/configured as a resource.

So if a servlet is mapped to "*.do", it will figure
that out? The error I am getting is that it doesn't
know about either "shop" or "viewCategory.do".

<c:url value="/shop/viewCategory.do?categoryId=DOGS"/>

Struts, SpringMVC and most other frameworks do not
map actions as servlets in web.xml, they map to a
prefix or suffix and use a secondary xml file to
handle URI->Action mapping internally.



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

0

Please sign in to leave a comment.