If you were brought here by Google and
you were searching for
Uncontrolled Vocabularies that
have nothing to do with this
weblog, try this search.
(Meme of Mathemagenic).

 
 

Today I almost missed Frank's thoughtful comment regarding establishing an International Haiku day on 5/7/5, because comment links are so gray and so small... What I needed was "Recent Comments" feature I saw on other blogs. My first though was to ask Simon, but this would be no fun. Instead, why not to try to tweak JSPs and see what will happen...

Well, what happened, after some hashing unknown tags and variables around, I got a relatively decent "Recent Comments" section for my blog. "Relatively" because it doesn't show recent comments, it shows all of them. But hey, that's pretty good for 20 minutes of mindless copy&paste exercises and without seeing any documentation.

I looked at JSPs from the default theme that are responsible for showing recent entries and comments, and picked up what I believed to be the most useful lines. Quickly enough it occurred to me that "comments to recent entries" is not the same as "recent comments to entries", so I decided to try to simply show all comments, just to check if this is possible. The first test failed because I left a wrong variable somewhere (something like ${recentDailyBlogEntry.comments} instead of ${blogEntry.comments} -- will I ever learn to pay attention?), and after one correction it worked!

It showed a link to the entry and commentator's name. Disappointed with easy success, I decided to continue my attempts to break Pebble and to add a date. Damn thing still worked. I bet if I boss it around changing date format from "long" to "short" it will work too! And it did.

I don't know how easily customized other blog software is, but I am impressed. I spent more time writing this report than actually "programming". This is, of course, because natural languages, unlike unnatural, don't provide any reusable tag library... Wait, no, they do.


I think part of that is because (a) the view components are JSP which is a well-known technology and (b) the JSTL tags don't fall over in a big heap if you feed them an expression that evaluates to null! I can't take much credit for it being easy to customize.

By the way, what is it with you lot trying to hack Pebble?! ;-)


Add a comment

Title
Body
HTML : b, i, blockquote, br, p, pre, a href="", ul, ol, li
Math Quiz 2 + 1 = (Helps stop blog spam)
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).

TrackBack : http://radio.javaranch.com/map/addTrackBack.action?entry=1079506313000



   
Home
March 2004
SunMonTueWedThuFriSat
  1  2  3  4  5  6 
 7  8  9  10  11  12  13 
 14  15  16  17  18  19  20 
 21  22  23  24  25  26  27 
 28  29  30  31    
Feb  |  Today  |  Apr

XML Feeds under costruction my Amazon wish list books I have where I am from where I am I am the number can be too optimistic split, but not dispersed with each post less and less...

recent blog entries

my pictures

www.flickr.com
This is a Flickr badge showing public photos from Mapraputa Is. Make your own badge here.

my books

links

javaranch blogs

language blogs

books i read


Sketches of Thought by Vinod Goel