<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>JavaGeek.org - web tag</title>
  <link>http://javageek.org/tags/web/</link>
  <description>For the love of Java</description>
  <language>en</language>
  <copyright>Guillermo Castro</copyright>
  <lastBuildDate>Fri, 12 Nov 2010 16:04:24 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  
  <item>
    <title>Add author icons to your weblog comments</title>
    <link>http://javageek.org/2006/07/06/add_author_icons_to_your_weblog_comments.html</link>
    
      
        <description>
          Good news, everyone! No, Futurama isn&#039;t on the air, yet. But &lt;span style=&#034;font-style: italic;&#034;&gt;soon&lt;/span&gt;. Anyway, I&#039;m still here, albeit a little busy. However, in one of those few late night things I do, I was able to finish up a little project. If you didn&#039;t know, there&#039;s a site that stores your icons and lets weblogs put icons on the comments, based on the author&#039;s email. &lt;a href=&#034;http://www.gravatar.com/&#034;&gt;Gravatar.com&lt;/a&gt; provides your site with icons for all the people who comment on your weblog. This works by locally (on your site) generating an MD5 hash of the comment author&#039;s email, and then creating an img tag with a source URL that points to gravatar.com and uses the hash to identify the author, and if the author has previously registered that email with gravatar, it will give back an 80x80 picture that was previously loaded by the author. The MD5 hash avoids the need for someone&#039;s email address to leave your site, which I think it&#039;s good.&lt;br /&gt;&lt;br /&gt;I found this concept very interesting, and when I looked at the &lt;a href=&#034;http://www.gravatar.com/implement.php&#034;&gt;implementation page&lt;/a&gt;, I found out there&#039;s very few java support, other than some code on how to create the MD5 and I realized this was a good opportunity to create a taglib. So here it is. &lt;a href=&#034;http://javageek.org/files/javatar-20060705.jar&#034;&gt;jAvatar&lt;/a&gt; is a tag library that lets you include a gravatar icon for each of the comments on your weblog. To use it, you just need to add the javatar.jar to your webapp, and the taglib to your comment page. Here&#039;s an example on how you can do it on your comments JSP page:&lt;br /&gt;&lt;br /&gt;
&lt;div class=&#034;codeSample&#034;&gt;&amp;lt;%@ page language=&amp;quot;java&amp;quot; pageEncoding=&amp;quot;UTF-8&amp;quot; contentType=&amp;quot;text/html; charset=UTF-8&amp;quot;%&amp;gt;&lt;br /&gt;&lt;span style=&#034;font-weight: bold;&#034;&gt;&amp;lt;%@taglib uri=&amp;quot;http://javageek.org/files/taglib/javatar&amp;quot; prefix=&amp;quot;javatar&amp;quot;%&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;%&lt;br /&gt;&lt;span style=&#034;font-weight: bold;&#034;&gt;String email = &amp;quot;some_email@somesite.com&amp;quot;;&lt;/span&gt;&lt;br /&gt;%&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;lt;head&amp;gt;&amp;lt;title&amp;gt;My JSP &#039;index.jsp&#039; starting page&amp;lt;/title&amp;gt;&amp;lt;/head&amp;gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;lt;body&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; This is a gravatar: &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style=&#034;font-weight: bold;&#034;&gt;&amp;lt;javatar:image mail=&amp;quot;&amp;lt;%= email %&amp;gt;&amp;quot; imgSize=&amp;quot;100&amp;quot; styleClass=&amp;quot;gravatar&amp;quot; rating=&amp;quot;R&amp;quot; defaultImgUrl=&amp;quot;http://mysite.com/img/defIcon.gif&amp;quot; borderColor=&amp;quot;F0F&amp;quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/div&gt;
&lt;br /&gt;Of course, the email should be the comment author&#039;s email, and the tag should be put in whatever loop you have for showing your comments. I hope you like it.
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2006/07/06/add_author_icons_to_your_weblog_comments.html&#034;
    dc:identifier=&#034;http://javageek.org/2006/07/06/add_author_icons_to_your_weblog_comments.html&#034;
    dc:title=&#034;Add author icons to your weblog comments&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1152197927699&amp;token=-5073226063551119965&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Web</category>
    
    <comments>http://javageek.org/2006/07/06/add_author_icons_to_your_weblog_comments.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2006/07/06/add_author_icons_to_your_weblog_comments.html</guid>
    <pubDate>Thu, 06 Jul 2006 14:58:47 GMT</pubDate>
  </item>
  
  <item>
    <title>Google Web Toolkit (beta) released</title>
    <link>http://javageek.org/2006/05/16/google_web_toolkit_beta_released.html</link>
    
      
        <description>
          Google has &lt;a href=&#034;http://googlewebtoolkit.blogspot.com/2006/05/welcome-to-gwt-blog.html&#034;&gt;just released&lt;/a&gt; the beta version of the &lt;a href=&#034;http://code.google.com/webtoolkit/&#034;&gt;Google Web Toolkit&lt;/a&gt; (GWT). The GWT is a Java-based toolkit that lets you create AJAX-enabled pages using Java. The main idea of the toolkit is that once you create your app following the GWT API, you will then compile your Java classes into Javascript and HTML, so you can deploy your application in any web server (it doesn&#039;t require Java to run your application, since everything is converted).&lt;br /&gt;&lt;br /&gt;GWT provides a new, fresh and different concept to the Java web toolkits realm by providing a Java to Javascript compiler, however you might be able to see some similarities with other Java frameworks, and even with some non-java frameworks, like &lt;a href=&#034;http://rubyonrails.org/&#034;&gt;Ruby On Rails.&lt;/a&gt; For example, in order to create a new project, GWT provides you with &lt;a href=&#034;http://code.google.com/webtoolkit/gettingstarted.html#Sample&#034;&gt;some scripts&lt;/a&gt; that you use to create the basic directory structure and templates. The Widgets (&lt;a href=&#034;http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.UserInterface.html&#034;&gt;UI components&lt;/a&gt;) look somewhat like Swing or Wicket components, and the &lt;a href=&#034;http://code.google.com/webtoolkit/overview.html#Modes&#034;&gt;hosted mode&lt;/a&gt; looks like how RoR does its development. Still, the whole Java-to-Javascript concept seems new to me, and it looks like you can do some really good-looking ajaxy-feeling sites with it. GWT provides back-end interaction via &lt;a href=&#034;http://code.google.com/webtoolkit/documentation/com.google.gwt.doc.DeveloperGuide.RemoteProcedureCalls.html&#034;&gt;RPC mechanisms&lt;/a&gt; too, because not everything can be done on the client-side.&lt;br /&gt;&lt;br /&gt;I will definitely keep an eye on this framework, since I think that it will provide much needed RAD features for Java web development.&lt;br /&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2006/05/16/google_web_toolkit_beta_released.html&#034;
    dc:identifier=&#034;http://javageek.org/2006/05/16/google_web_toolkit_beta_released.html&#034;
    dc:title=&#034;Google Web Toolkit (beta) released&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1147827860698&amp;token=-6692733579201346424&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Java</category>
    
    <category>Web</category>
    
    <comments>http://javageek.org/2006/05/16/google_web_toolkit_beta_released.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2006/05/16/google_web_toolkit_beta_released.html</guid>
    <pubDate>Wed, 17 May 2006 01:04:20 GMT</pubDate>
  </item>
  
  <item>
    <title>Comparing Web Frameworks: RIFE</title>
    <link>http://javageek.org/2006/03/17/comparing_web_frameworks_rife.html</link>
    
      
        <description>
          Well, it seems that the &lt;a href=&#034;http://weblogs.java.net/blog/simongbrown/&#034;&gt;series of articles&lt;/a&gt; comparing all the different frameworks using Simon&#039;s initial set of &lt;a href=&#034;http://weblogs.java.net/blog/simongbrown/archive/2005/11/comparing_webap_1.html&#034;&gt;requirements&lt;/a&gt; is expanding. This time, Geert Bevin, the creator of RIFE, has done &lt;a href=&#034;http://www.theserverside.com/news/thread.tss?thread_id=39484&#034;&gt;the same thing&lt;/a&gt;, using his own framework.&lt;br /&gt;&lt;br /&gt;I&#039;ve always found RIFE very interesting, but a little daunting for new users. It uses a lot of cool concepts, like &lt;a href=&#034;http://rifers.org/features/integrated+web+continuations&#034;&gt;web continuations&lt;/a&gt;, &lt;a href=&#034;http://rifers.org/features/template+content+transformation&#034;&gt;blueprints&lt;/a&gt;, &lt;a href=&#034;http://rifers.org/features/centralized+meta-data+facility&#034;&gt;constrained meta data&lt;/a&gt;, etc., but if you are starting at server-side development using Java, or if you come from a much simpler framework like Struts, then you might find all of this just a little bit too much.&lt;br /&gt;&lt;br /&gt;Also, it seems that there are at least &lt;a href=&#034;http://rifers.org/blogs/gbevin/2006/3/2/rife_1_4_released#1_4_highlight02&#034;&gt;3 ways to accomplish the same task&lt;/a&gt; for many tasks that you want to do.&amp;nbsp; This says wonders about the flexibility of the framework, but if you only want to &#039;get it done&#039;, you will probably stall with RIFE, trying to figure out which one of the options is the best for you; and then, after selecting one, you might start thinking that the other ones might have been better.&lt;br /&gt;&lt;br /&gt;I&#039;m sure that the amount of work Geert has put into his framework is making RIFE very flexible. However, I would still choose Wicket over RIFE, as Wicket provides a simpler entry point, in my opinion. I guess the real issue is how does each framework handle more complex requirements, though.&lt;br /&gt;
&lt;p&gt;  &lt;/p&gt;
&lt;!--
&lt;rdf:RDF xmlns:rdf=&#034;http://www.w3.org/1999/02/22-rdf-syntax-ns#&#034;
         xmlns:dc=&#034;http://purl.org/dc/elements/1.1/&#034;
         xmlns:trackback=&#034;http://madskills.com/public/xml/rss/module/trackback/&#034;&gt;
&lt;rdf:Description
    rdf:about=&#034;http://javageek.org/2006/03/17/comparing_web_frameworks_rife.html&#034;
    dc:identifier=&#034;http://javageek.org/2006/03/17/comparing_web_frameworks_rife.html&#034;
    dc:title=&#034;Comparing Web Frameworks: RIFE&#034;
    trackback:ping=&#034;http://javageek.org/addTrackBack.action?entry=1142608750477&amp;token=3953955292254547826&#034; /&gt;
&lt;/rdf:RDF&gt;
--&gt;
        </description>
      
      
    
    
    
    <category>Web</category>
    
    <comments>http://javageek.org/2006/03/17/comparing_web_frameworks_rife.html#comments</comments>
    <guid isPermaLink="true">http://javageek.org/2006/03/17/comparing_web_frameworks_rife.html</guid>
    <pubDate>Fri, 17 Mar 2006 15:19:10 GMT</pubDate>
  </item>
  
  </channel>
</rss>

