首页 \ 问答 \ 为什么java servlet不是过滤器?(Why java servlet is not a filter? [duplicate])

为什么java servlet不是过滤器?(Why java servlet is not a filter? [duplicate])

可能重复:
servlet vs过滤器

我是java初学者。 现在我正在学习过滤器。 servlet和过滤器之间有什么区别。 我读过有关过滤器的内容,

过滤器是可以转换请求或修改响应的对象。 过滤器不是servlet; 他们实际上并没有创建响应

我无法理解这一点。 任何人都可以向我解释。


Possible Duplicate:
servlet vs filter

I am java beginner. Now I am learning about filters. What is the difference between servlet & filter. I have read about filter,

a filter is an object that can transform a request or modify a response. Filters are not servlets; they don't actually create a response

I am not able to understand that. Can any one explain it to me.


原文:https://stackoverflow.com/questions/7333461
更新时间:2022-02-21 22:02

最满意答案

我认为这样做违反了FaceBook Rules。

根据此处政策 ,由于“赞”按钮明确显示在该页面上。 在“赞”按钮项目3下面写着:

虽然您可以缩放尺寸以满足您的需要,但您不能以任何其他方式修改Like按钮(例如通过更改设计)

但根据这个讨论,它可能会或可能不会,这取决于你有多大。 本文向您展示如何,但要注意Facebook可能会让您没有正确使用它。


I believe it is against FaceBook Rules to do this.

Based on the policy here, since the 'Like' Button is explicitly displayed on that page. And under the 'Like' Button item 3 reads:

While you may scale the size to suit your needs, you may not modify the Like Button in any other way (such as by changing the design)

But based on this discussion it may or may not be ok, depending on how big you are. This article shows you how, but beware facebook may get you for not using it correctly.

相关问答

更多
  • 您所指的功能已于2012年11月删除 - https://developers.facebook.com/docs/reference/plugins/like/migration/ The feature you're referring to was removed in November 2012 - https://developers.facebook.com/docs/reference/plugins/like/migration/
  • 不久前,我正在用这个来帮助一个朋友,他的问题就是缺少网址共享所需的元标记: http : //wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags (链接的缩略图图像是可选的) 但是,我不确定你是否可以将Like和Share功能合并到只有[x] fbml的一个按钮中。 您可能希望在Like按钮上使用onclick实现共享功能。 在onclick中,您将使用fb.ui和stream.share运行javascrip ...
  • 确保在代码中使用正确的data-href来喜欢文章。 (您应该参考该单篇文章的URL,即使它位于包含多篇文章的页面上。) 例如:
  • 我不确定我明白你的意思,但我认为你想要的是: I'm not sure I understand what you are going for, but I think is what you want:
  • 没有办法像法律上的事件追踪Facebook。 edge.create事件已被弃用( https://developers.facebook.com/blog/post/2017/11/07/changes-developer-offerings/ ) 另一方面,根据https://developers.facebook.com/docs/apps/examples-platform-policy-4.5试图跟踪Facebook喜欢,然后给用户一些东西是不允许的 感谢luschn的意见 There's no ...
  • 事实证明,使用iframe方法(显然)回调不起作用。 我已经切换到HTML5方法,它工作正常。 建立: