[jboss-cvs] jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui ...

Christian Bauer christian at hibernate.org
Fri Oct 12 12:31:28 EDT 2007


  User: cbauer  
  Date: 07/10/12 12:31:28

  Modified:    examples/wiki/src/main/org/jboss/seam/wiki/core/ui 
                        FeedServlet.java
  Log:
  Internationalized almost all strings
  
  Revision  Changes    Path
  1.9       +5 -1      jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: FeedServlet.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/src/main/org/jboss/seam/wiki/core/ui/FeedServlet.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -b -r1.8 -r1.9
  --- FeedServlet.java	27 Aug 2007 03:09:19 -0000	1.8
  +++ FeedServlet.java	12 Oct 2007 16:31:28 -0000	1.9
  @@ -58,10 +58,12 @@
   
               // Create feed
               SyndFeed syndFeed = new SyndFeedImpl();
  +            syndFeed.setUri(request.getRequestURL().toString() + "?feedId=" + feedId);
               syndFeed.setFeedType(feedType);
               syndFeed.setTitle(feed.getTitle());
               syndFeed.setLink(request.getRequestURL().toString() + "?feedId=" + feedId);
               syndFeed.setAuthor(feed.getAuthor());
  +            if (feed.getDescription() != null && feed.getDescription().length() >0)
               syndFeed.setDescription(feed.getDescription());
               syndFeed.setPublishedDate(feed.getPublishedDate());
   
  @@ -74,6 +76,7 @@
                   syndEntry = new SyndEntryImpl();
                   syndEntry.setTitle(entry.getTitle());
                   syndEntry.setLink(entry.getLink());
  +                syndEntry.setUri(entry.getLink());
                   syndEntry.setAuthor(entry.getAuthor());
                   syndEntry.setPublishedDate(entry.getPublishedDate());
                   syndEntry.setUpdatedDate(entry.getUpdatedDate());
  @@ -87,6 +90,7 @@
   
               // Write feed to output
               response.setContentType("application/atom+xml"); // TODO: Make this more flexible
  +            response.setCharacterEncoding("UTF-8");
               SyndFeedOutput output = new SyndFeedOutput();
               output.output(syndFeed, response.getWriter());
               response.getWriter().flush();
  
  
  



More information about the jboss-cvs-commits mailing list