开发者

Facebook convas page must end with backslash (directory) how to make servlet end with backslash

开发者 https://www.devze.com 2023-03-05 11:02 出处:网络
when i direct convas page to my servlet it fails as http 404 the resource is not available, i changed the uri-pattern in web.xml of servlet adding backslash when i try to run 开发者_StackOverflow社区l

when i direct convas page to my servlet it fails as http 404 the resource is not available, i changed the uri-pattern in web.xml of servlet adding backslash when i try to run 开发者_StackOverflow社区locally it gives me same error http 404. how to direct facebook application to my servlet adding backslash to it ? iam deploying my servlet over TomCat 6.

Any help, please?


Use a servlet mapping similar to this:

  <servlet-mapping>
    <servlet-name>unlikephoto</servlet-name>
    <url-pattern>/unlikephoto/*</url-pattern>
  </servlet-mapping>

You should then be able to access the url with a backslash at the end.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号