无法在Spring Web App中将javax.servlet.ServletException解析为一种类型 [英] javax.servlet.ServletException cannot be resolved to a type in spring web app

查看:178
本文介绍了无法在Spring Web App中将javax.servlet.ServletException解析为一种类型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Spring框架工作来开发Web应用程序,但是在某些jsp页面中却出现了以下错误.

I am developing web app using spring frame work, but i am getting following error in some of the jsp pages.

javax.servlet.ServletException cannot be resolved to a type

我也包含了servlet-api,但仍显示相同的错误消息.如何解决这个问题?

I have included servlet-api also but still same error message is displaying. How to over come this problem?

推荐答案

我认为这可能可行,在Eclipse中选择您的项目→然后单击项目菜单栏顶部→转到属性→单击目标运行时→现在,您必须选中用于运行当前项目的服务器旁边的复选框 →点击应用→然后点击确定按钮.就是这样,尝试一下.

I guess this may work, in Eclipse select your project → then click on project menu bar on top → goto to properties → click on Targeted Runtimes → now you must select a check box next to the server you are using to run current project → click Apply → then click OK button. That's it, give a try.

这篇关于无法在Spring Web App中将javax.servlet.ServletException解析为一种类型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆