<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss'><id>tag:blogger.com,1999:blog-4761561117183058959</id><updated>2009-03-28T23:57:24.578+08:00</updated><title type='text'>X - Orange and Bronze - T</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-8111455442157688236</id><published>2009-03-28T19:57:00.000+08:00</published><updated>2009-03-28T23:57:24.645+08:00</updated><title type='text'>ImagineCup2009 Updates - Congrats DLSU</title><content type='html'>eto ung nakita ko sa Leaderboard. Please confirm.&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;Embedded Development:&lt;/span&gt;&lt;br&gt;Currently, 1 PH team&lt;br&gt;- ADMU-UP: team-tations&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;Game Development:&lt;/span&gt;&lt;br&gt;Currently, 1 PH team&lt;br&gt;- ADMU: Banana&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;MashUp:&lt;/span&gt;&lt;br&gt;Currently 4 PH teams:&lt;br&gt;- DLSU: grace8fhex&lt;br&gt;- DLSU: Green Executioners&lt;br&gt;- DLSU: OneAdvocacy&lt;br&gt;- DLSU: Team Jet&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;Software Design:&lt;/span&gt;&lt;br&gt;Currently 2 PH teams:&lt;br&gt;- DLSU: I-TANIM&lt;br&gt;- DLSU: BUKLOD_DLSU&lt;br&gt;&lt;br&gt;&lt;span style="font-weight: bold;"&gt;Robotics:&lt;/span&gt; Coming up (April 20)&lt;br&gt;DLSU Teams that joined: currently 4.&lt;br&gt;&lt;br&gt;Congrats DLSU for filling up the PH slots. Hope the remaining 4 teams win.&lt;br&gt;&lt;!-- multiply:no_crosspost --&gt;&lt;p class='multiply:no_crosspost'&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-8111455442157688236?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/8111455442157688236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=8111455442157688236' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8111455442157688236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8111455442157688236'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2009/03/imaginecup2009-updates-congrats-dlsu.html' title='ImagineCup2009 Updates - Congrats DLSU'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-8604972874368520779</id><published>2009-03-03T15:58:00.000+08:00</published><updated>2009-03-03T20:59:00.612+08:00</updated><title type='text'>Filipinos are Maids!  (Sabi ng Singaporean kong Kaklase) Bull!</title><content type='html'>  Prof: "So how do you differentiate your proposed Nanny from the usual Maid?"&lt;br&gt;Singaporean Classmate: "Maids are FILIPINOS and INDONESIANS la"&lt;br&gt;Crowd: "ooohhhhhh"&lt;br&gt;Me: &lt;Smiled&gt; - pero nainsulto&lt;br&gt;Singaporean Seatmate: "Sorry for that, they're just insensitive"&lt;br&gt;&lt;br&gt;bull!&lt;br&gt;To GMA: these things will keep on happening if our own government takes away everyone's opportunity to be respected.&lt;br&gt;&lt;br&gt;P.S. In that tutorial class of 15, I was the only Filipino with another one from China.&lt;br&gt;    &lt;!-- multiply:no_crosspost --&gt;&lt;p class='multiply:no_crosspost'&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-8604972874368520779?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/8604972874368520779/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=8604972874368520779' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8604972874368520779'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8604972874368520779'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2009/03/filipinos-are-maids-sabi-ng-singaporean.html' title='Filipinos are Maids!  (Sabi ng Singaporean kong Kaklase) Bull!'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-8332387899277042924</id><published>2008-10-27T17:06:00.000+08:00</published><updated>2008-10-27T21:06:57.280+08:00</updated><title type='text'>SQL Case Problem - Solved with an Alternative Query</title><content type='html'>Yes! I did it. I was able to have an alternative query (Thanks to paxi for the initial UNION idea). As you can see, the code is longer than the one I posted yesterday, but then it is able to display what I need... perfectly.&lt;br&gt;&lt;br&gt;I have here 3 SELECT statements, 2 of which are under the main SELECT and are combined thru UNION.&lt;br&gt;&lt;br&gt;To evaluate these 2 SELECT statements, the first one is for the debit while the other one is for the credit. You may notice that in the intended debit select, I added NULL AS CREDIT and in the credit select counterpart, I added NULL AS DEBIT. This is because the UNION syntax requires me to have the two SELECT statements return tables that are equivalent (Same column data types and order).&lt;br&gt;&lt;br&gt;And the SQL Query:&lt;br&gt;&lt;br&gt;SELECT     ABS(debit) AS debit, ABS(credit) AS credit, title FROM&lt;br&gt;(&lt;br&gt;&lt;br&gt;SELECT     entry_account.balance AS debit, null AS credit, accounts.title, entry_account.entry_id&lt;br&gt;FROM (entry_account INNER JOIN accounts ON entry_account.account_id = accounts.id)&lt;br&gt;WHERE (accounts.normal_balance = 'D') AND (entry_account.balance &gt;= 0) OR (accounts.normal_balance = 'C') AND (entry_account.balance &lt; 0)&lt;br&gt;&lt;br&gt;UNION&lt;br&gt;&lt;br&gt;SELECT null AS debit, entry_account_1.balance AS credit, accounts_1.title,  entry_account_1.entry_id&lt;br&gt;FROM (entry_account entry_account_1 INNER JOIN accounts accounts_1 ON   entry_account_1.account_id = accounts_1.id)&lt;br&gt;WHERE     (accounts_1.normal_balance = 'C') AND (entry_account_1.balance &gt;= 0) OR (accounts_1.normal_balance = 'D') AND (entry_account_1.balance &lt; 0)&lt;br&gt;&lt;br&gt;) derivedtbl_1&lt;br&gt;WHERE     (entry_id = ?)&lt;br&gt;&lt;br&gt;sweet...&lt;br&gt;   &lt;!-- multiply:no_crosspost --&gt;&lt;p class='multiply:no_crosspost'&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-8332387899277042924?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/8332387899277042924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=8332387899277042924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8332387899277042924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8332387899277042924'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/10/sql-case-problem-solved-with.html' title='SQL Case Problem - Solved with an Alternative Query'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-7599681985378862154</id><published>2008-10-25T20:45:00.000+08:00</published><updated>2008-10-26T00:45:03.623+08:00</updated><title type='text'>SQL Case Problem</title><content type='html'>SELECT     (CASE WHEN entry_account.balance &gt; 0 THEN entry_account.balance ELSE null END) AS debit, accounts.title&lt;br&gt;FROM         ((entry_account INNER JOIN&lt;br&gt;                      accounts ON entry_account.account_id = accounts.id) INNER JOIN&lt;br&gt;                      entry ON entry_account.entry_id = entry.id)&lt;br&gt;WHERE     (entry.id = ?)&lt;br&gt;&lt;br&gt;Basically, the above code simply wants to put a value in the debit column if entry_account.balance is &gt; 0 else NULL is appended. This is not exactly what my business logic is but I just have to make it simpler to actually get myself familiarized with the CASE syntax.&lt;br&gt;&lt;br&gt;The problem is, it just doesn't work. I browsed a couple of code snippets and all of them don't give my an idea why my code is wrong.&lt;br&gt;&lt;br&gt;Have to sleep now, I might just get the answer tomorrow.&lt;br&gt;   &lt;!-- multiply:no_crosspost --&gt;&lt;p class='multiply:no_crosspost'&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-7599681985378862154?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/7599681985378862154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=7599681985378862154' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/7599681985378862154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/7599681985378862154'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/10/sql-case-problem.html' title='SQL Case Problem'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-454791093618547607</id><published>2008-08-02T19:37:00.001+08:00</published><updated>2008-08-02T19:43:13.584+08:00</updated><title type='text'>Problems with JSF – Help Guys?</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: justify'&gt;Hello O&amp;amp;B. I'm experiencing a problem right now. Recently, I've been doing my distributed database machine problem and self-studying JSF at the same time. Now, the problem is this, the database part is not that hard but the JSF implementation quite made itself a stumbling block. And I couldn't just roll things back since I'm almost finished and I simply want to finish this project implementing the JSF framework (in all instances – I don't want to resort to the JSP style of iterating over the arrays and have the &amp;lt;tr&amp;gt; &amp;lt;td&amp;gt;s).&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Currently, I simply want to have a table within a table, I couldn't find (or have not researched enough) info about nesting tables, so I think it would be a great help if you guys can give me a code, send me a tutorial link, or give me any articles or documents that can solve this problem.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;The Dummy scenario (Just to simplify things):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I have A and B classes. A has an array of B. I also have a Request Bean C, which has an array of A.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I have an init method in my JSF Java file, which populates the Request Bean C from the Dao. (So this is already with the assumption that the whole thing is populated – just the view part is not working)&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Here's the scenario (I'll simplify the tags –I'll just give their name):&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table row group; sourceData= C.As; sourceVar= currentRow&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table column&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;static text; text = currentRow.value[&amp;lt;field name here other than the array B&amp;gt;]&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table column&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style='color:red'&gt;&amp;lt;here&amp;gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table row group&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;==This is part is definitely not working – just a rough guess on how the JSF works, thought this worked.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;What I did, in the &amp;lt;here&amp;gt;:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table column&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;table row group; sourceData= currentRow.value[Bs]&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table row group&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;lt;/table column&amp;gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;You can prolly guess what I was trying to do. This just didn't work. What I wanted to achieve:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A[0]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A.B[0]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A.B[1]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;…&lt;br /&gt;&lt;/p&gt;&lt;p&gt;A[1]&lt;br /&gt;&lt;/p&gt;&lt;p&gt;…&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt; &lt;/p&gt;&lt;p&gt;So there, I hope I've given enough info. Thanks in advance for the help(S).&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-454791093618547607?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/454791093618547607/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=454791093618547607' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/454791093618547607'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/454791093618547607'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/08/problems-with-my-database-subject-help.html' title='Problems with JSF – Help Guys?'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-7894853789480930693</id><published>2008-06-09T01:48:00.001+08:00</published><updated>2008-06-09T01:48:14.790+08:00</updated><title type='text'>Checking Out</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: justify'&gt;Long time no commit. The last time I checked the project, I could almost say, "I am a stranger of my own country" – Amir from The Kite Runner. I'm wondering why there is currently an Option in the model, actions and services are somewhat jumbled, and so and so.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Recently, I came across an article where there is a code segment about Logger. Adding a log was done thru a static method call, so there was practically no instantiation of Log.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Frames are bad, well in my opinion. Most sites I visit don't have frames. They have internal frames but not the frame I used with the ftl. Also, in the freemarker documentation, there was an include syntax to link to an existing ftl code, thus frames are technically not needed.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;This will prolly be my last blog for this term (3 months) in this blog site. I'm transferring to my other "DLSU Acad" blog (that is also listed in my blogger profile) for a while just so I could have a unified flow of thoughts.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-7894853789480930693?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/7894853789480930693/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=7894853789480930693' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/7894853789480930693'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/7894853789480930693'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/06/checking-out.html' title='Checking Out'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-8136413086464137994</id><published>2008-05-22T22:05:00.001+08:00</published><updated>2008-05-22T22:08:07.572+08:00</updated><title type='text'>Near Finish</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: justify'&gt;I'm so happy! Since yesterday, I've been asking God to enlighten me in initializing default values for the &amp;lt;@s.select&amp;gt; tag, whether multiple or not. Just now, I was able to give the roles default values whenever I edit the user. What I did was I have a List&amp;lt;Integer&amp;gt;, that is the container of the existing roleIds of the user, and put it to the value attribute of the select tag. It's quite simple, only that I've been experimenting with the wrong attributes. Many forums claim it's the property attribute, though it might have been right, there was no right example showing how it should be done. With the value attribute, I kind of experimented on it a bit and thank God, I was able to make it right.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I was able to transfer the role identification to the User model. I added the isAdmin function in the User model, as how sir Butch suggested. And now, the loginAction is really much cleaner.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I added 2 kinds of Login Interceptors: the one that simply assures that the user session is not null, and the other one that assures that the user session has an admin role. Jo mentioned (Anna said) Spring security. I wasn't able to experiment with this feature though.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Another component is to be added: Exception. Just where should I put it? I have two kinds of exceptions, the one that we made to prevent duplicate values, and the Validation exception, the one Tina did. The validation exceptions weren't caught yet and I'm still finding the right spot for it. Also, the validation mechanism Tina implemented wasn't quite that easy to comprehend. I think it's not implemented as the usual interceptor. It doesn't have an interceptor reference, simply it has a mapping mechanism in the web.xml: patterns com.orangeandbronze.service.* so I think it maps itself automatically. Catching the exception is also another thing. Uhh, can you wait 'til I understand it (the validation impl)? &lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Refactoring the bloodiest of them all: Book! I'm having a hard time right now understanding the literally messy code. What was I thinking that time? I couldn't effectively add the author – book mapping til I refactor this completely. Right now, I just migrated some unnecessary functions from the action to the service.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-8136413086464137994?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/8136413086464137994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=8136413086464137994' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8136413086464137994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8136413086464137994'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/05/near-finished.html' title='Near Finish'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-1759247564144633759</id><published>2008-05-21T10:22:00.001+08:00</published><updated>2008-05-21T23:19:46.379+08:00</updated><title type='text'>Refactoring</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: justify'&gt;I'm currently on to refactoring our codes; making action classes not bulky, services simple and precise, and daos not calling other daos. I'm also sharing some of the parameterized mapper.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I just finished refactoring category and role actions, services and daos. I just find something weird. In my category/update-cat.ftl, from the textfield, when I hit the enter key, it automatically "clicks" the Save button. However, in my role/update-rol.ftl, from the textfield, when I hit the enter key, it throws an exception: that I didn't declare a SUCCESS result type in my struts.xml, so I had to manually click the button save to make it work. I'm comparing the 2 ftls and struts.xml and currently, I can find no reason why such a thing is happening. Also, my two actions never return SUCCESS nor do I have execute methods.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I just added role-user mapping when adding users. I wanted to eliminate the roleIdList of List&amp;lt;Integer&amp;gt; type in my user action but the strut's select tag wants it badly cause it returns a list of role ids, and there's no way to automatically map it to the id field of role.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;One of the good things in my userAction is that the user-role initialization is now done inside user dao and not on user service. I'm now into providing an edit user function.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Let me call it a day. In theory, we already did more than 80% of the project. But, yes "but", the integration didn't seem to have gone smoothly. The borrowing, and returning, can't be committed to the SVN due to an unknown reason.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;I've already created a smooth navigation between login – admin – logout – login – employee etc. First thing tomorrow, we got to make the borrowing and returning fully functional. I also have to do a lot of refactoring still especially in status, author, books, and especially borrowedBooks. And yeah, we are planning to add the log in the services.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-1759247564144633759?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/1759247564144633759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=1759247564144633759' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/1759247564144633759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/1759247564144633759'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/05/refactoring.html' title='Refactoring'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4761561117183058959.post-8402522634763796205</id><published>2008-05-20T22:38:00.001+08:00</published><updated>2008-05-21T10:17:26.550+08:00</updated><title type='text'>A New Blog</title><content type='html'>&lt;span xmlns=''&gt;&lt;p style='text-align: justify'&gt;Finally, I have a new blogger blog. It's so easy to customize things with Microsoft Office (Blog), including add, and non-spontaneous editing of blog entries.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;Back to work – I've already distributed tickets to my group mates. The first four tickets that I issued were about: Validator, Login Interceptor, Borrow, and Request Book. I'm also trying to refactor the codes in my admin feature. I announced a new convention: no method should start with get/set unless they are getters and setters. Use "query***List" in the query methods inside the Daos. This is to enable me to easily filter methods in my outline explorer.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br/&gt;Bad interceptors! The interceptors go before the action methods are accessed making my fields unset by the time the method actions are actually called. I'm looking for references on chaining interceptors to actions. Currently, the add functions are totally not working.&lt;br /&gt;&lt;/p&gt;&lt;p style='text-align: justify'&gt;*****&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Before calling our loginInterceptor, we now add a call to basicStack interceptor. This way, it kinds of "backup" the values of our fields before going to loginInterceptor and then restores them back.&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4761561117183058959-8402522634763796205?l=xt-onb.blogspot.com'/&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://xt-onb.blogspot.com/feeds/8402522634763796205/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='https://www.blogger.com/comment.g?blogID=4761561117183058959&amp;postID=8402522634763796205' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8402522634763796205'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4761561117183058959/posts/default/8402522634763796205'/><link rel='alternate' type='text/html' href='http://xt-onb.blogspot.com/2008/05/new-blog.html' title='A New Blog'/><author><name>Xt</name><uri>http://www.blogger.com/profile/17702626213239653208</uri><email>christian.chiu@gmail.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='00938290754614006877'/></author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></entry></feed>