Showing posts with label Link. Show all posts
Showing posts with label Link. Show all posts

Tuesday, December 23, 2008

在搜索引擎上查询网站的收录链接信息(SEO)

1. http://www.sogou.com
site:http://www.php.net/
link:http://www.php.net/

2. http://www.google.cn
link:http://www.php.net/ 不准确
site:http://www.php.net/
intext:http://www.php.net
www.php.net -site:www.php.net
注意,该命令反馈的链接中可能包括那些仅仅提及你的URL而实际上并没与你做链接的网站。
http://www.google.com/search?q=php.net&as_qdr=d1
http://www.google.com/search?hl=en&q=site%3Aphp.net&as_qdr=m

3. http://www.baidu.com
site:(php.net)

4. http://www.yahoo.cn/中直接输入网址可以查询网页收录数量
如直接输入:http://www.php.net/

5. 其他一些工具:
http://sitemap.cn.yahoo.com
http://indexed.webmasterhome.cn/?domain=php.net
http://siteexplorer.search.yahoo.com/
http://tool.admin5.com/
http://tool.chinaz.com/
http://www.yisou.com/search:site%3Ahttp%3A//www.php.net

Wednesday, October 29, 2008

Tapestry5 Page ActionLink 拼装过程

Page.createActionLink ->
LinkFactory.createActionLink ->
InvocationTarget.getPath ->
Link

其中在InvocationTarget的实现类ActionLinkTarget.getPath方法内实际拼装path,path中包括page, component, event等,如test.username:autocomplete。在LinkFactory中调用Link.addParameter方法将page activation context追加到link中。

Monday, October 06, 2008

Tapestry5 中事件处理完成之后可以返回的对象类型

  • Nothing: 此时方法一般是void的,当前页面会被刷新。
  • String: 要求此string指向一个PageName。
  • Class: 返回一个SomePage.class。
  • Page: 返回一个实例化的page,此page被当前页面注入。
  • Link: 返回一个实现Link接口的实例,此Link会被转化成对应的URL并重定向到此页面,Link对象一般通过页面中注入的ComponentResources中的方法生成,如ComponentResources.createPageLink、ComponentResources.createActionLink。
  • Stream: 返回一个StreamResponse对象,如提供用户pdf/excel格式的下载,更多用于ajax返回。
  • URL: 返回一个URL对象,可以重定向到一个外部链接上去。
返回除以上几种对象之外的对象都会出错。
Reference: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html