<form action="something" - IDEA gives a warning and ignores web.xml

Answered

I have a <form action="tableReport" in the JSP page.
IDEA gives a warning "Cannot resolve file 'tableReport'" while project's web.xml contains a mapping:

<servlet-mapping>
<servlet-name>TableReport</servlet-name>
<url-pattern>/tableReport</url-pattern>
</servlet-mapping>

So I suppose IDEA could provide a link to the corresponding servlet from "tableReport" instead of giving a warning.

8243, Java 6, Fedora

1
6 comments

You are right. Please file it to JIRA.


0

Having the same issue, and the jira issue seems to be gone

0

The issue has been fixed long ago: https://youtrack.jetbrains.com/issue/IDEA-43336 It must be a different problem.

Please make sure you have Web facet configured with the Web resource directory and Deployment descriptor set.

If application works but the issue remains, please file a bug at https://youtrack.jetbrains.com/issues/IDEA with a sample project. Thank you.

0

The issue is in Pycharm, maybe it got fixed in IDEA, but didn't make it into Pycharm

0

The mentioned issue is only about Java and web.xml integration. If you have it with Python related frameworks please report at https://youtrack.jetbrains.com/issues/PY Thank you.

0

Please sign in to leave a comment.