I have deployed a web application having a sample jstl page in Tomcat 8 using Netbeans 8.
Netbeans is showing red lines in jstl code although I have added jstl jars in the library. Its not able to parse the code.
The web page also shows jstl codes as it is not able to parse the code.
Here are some screenshots -
You should tell Tomcat which files it needs to process as JavaServerPages. The default is *.jsp
, so you probably want to rename your file to index.jsp
. You can however change this configuration in your web.xml
with the following code:
<servlet-mapping>
<servlet-name>jsp</servlet-name>
<url-pattern>*.xyz</url-pattern>
</servlet-mapping>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.