简单问题,高手解答

qs_25 2006-03-07 10:39:14
调用zoom(servlet)的时候出现问题
<%@ page language="java" contentType="text/html; charset=GBK"
pageEncoding="GBK"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<a href="zoom">放大</a>
<img src="c:\\comp.gif">
</body>
</html>

HTTP Status 405 - HTTP method GET is not supported by this URL

--------------------------------------------------------------------------------

type Status report

message HTTP method GET is not supported by this URL

description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
...全文
98 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qs_25 2006-03-08
  • 打赏
  • 举报
回复
servlet配置的没有问题,在ie中直接调用没有问题
shazi_pig 2006-03-07
  • 打赏
  • 举报
回复
应该是web.xml里面设置的错误。重新检查看看。
xiaobaolove 2006-03-07
  • 打赏
  • 举报
回复
检查uri-pattern..和所对应的class
yingtju 2006-03-07
  • 打赏
  • 举报
回复
感觉<a href="zoom">放大</a>好奇怪

定义servlet应该有个uri,不知你的web.xml怎么写的
还是定义个匹配方式好
beyh 2006-03-07
  • 打赏
  • 举报
回复
应该是web.xml里面设置的错误..仔细看一下

81,122

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧