<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by rukawa</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Wed, 25 Nov 2009 03:43:20 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Java Locale Date for Malay language</title>
            <link>http://forum.lowyat.net/topic/1107499</link>
            <description>Sorry guys, after looking thru back this old system, I tried to get the locale for Malay language for a project to display the month of the date in Java 1.4 environment. &lt;br /&gt;&lt;br /&gt;I can&amp;#39;t go back before I finish this. Anyone has a way for it?&lt;br /&gt;&lt;br /&gt;For Java 6 I could do something like this though&amp;#33;&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;Locale malaysia = new Locale&amp;#40;&amp;#34;ms&amp;#34;,&amp;#34;MY&amp;#34;,&amp;#34;MY&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp;&lt;br /&gt; &amp;nbsp;Calendar cal = Calendar.getInstance&amp;#40;malaysia&amp;#41;;&lt;br /&gt; &amp;nbsp;DateFormat df = DateFormat.getDateTimeInstance&amp;#40;DateFormat.FULL, DateFormat.FULL, malaysia&amp;#41;;&lt;br /&gt; &amp;nbsp;System.out.println&amp;#40;df.format&amp;#40;cal.getTime&amp;#40;&amp;#41;&amp;#41;&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;What about the 1.4?</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Fri, 24 Jul 2009 18:26:20 +0800</pubDate>
        </item>
        <item>
            <title>UserTransaction lookup Error</title>
            <link>http://forum.lowyat.net/topic/842210</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Context ctx = new InitialContext&amp;#40;&amp;#41;;&lt;br /&gt;ut = &amp;#40;UserTransaction&amp;#41; ctx.lookup&amp;#40;&amp;#34;java&amp;#58;comp/UserTransaction&amp;#34;&amp;#41;;&lt;br /&gt;ut.begin&amp;#40;&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;I am sure some of you java people are familiar with this. Well, it&amp;#39;s just a look up to the transaction management part, but the problem now is that, the first time I run the program, it&amp;#39;ll throw out this error when I call this lookup for the first time.&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;PreLodgementMgr.lodgeChargeROCDocument&amp;#40;&amp;#41;&amp;#58; Exception&amp;#58; null&lt;br /&gt;javax.naming.NamingException&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;but when I run the process a second time, it will go thru and the lookup was successful. Anyone with any info on this? Well, this code was migrated from WSAD into Eclipse and this has been bugging me for quite awhile.  &lt;!--emo&amp;:hmm:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/hmm.gif' border='0' style='vertical-align:middle' alt='hmm.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Tue, 11 Nov 2008 12:23:18 +0800</pubDate>
        </item>
        <item>
            <title>Problem With Feedburner</title>
            <link>http://forum.lowyat.net/topic/838241</link>
            <description>Feedburner has been a bit different ever since it was owned by Google.&lt;br /&gt;&lt;br /&gt;What seems to be the problem, they&amp;#39;re not picking up my feeds which other feedreader does. I get the error 500 on my sites, which now makes me disable my feeds.&lt;br /&gt;&lt;br /&gt;Example of one is &lt;br /&gt;&lt;br /&gt;&lt;a href='http://feeds.feedburner.com/danielctw' target='_blank'&gt;http://feeds.feedburner.com/danielctw&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Until now looking into the web doesn&amp;#39;t seem to solve this issue. Guessed I can stop using feedburner for awhile. Anyone here has a solution or faced the same situation too?</description>
            <author>rukawa</author>
            <category>Blogmasters &amp;amp; Webmasters</category>
            <pubDate>Fri, 07 Nov 2008 02:08:08 +0800</pubDate>
        </item>
        <item>
            <title>EJB 2.1 over EJB 2.0</title>
            <link>http://forum.lowyat.net/topic/819593</link>
            <description>First of all, considering that Java is an ever learning experience, and that some companies are still using existing technologies, I have this question to help spearhead for the current web application.&lt;br /&gt;&lt;br /&gt;The current technology is EJB 2.0 here.&lt;br /&gt;&lt;br /&gt;Can I run EJB 2.1 standard on a EJB 2.0 here. Searching thru Google brings me no luck whatsoever. Regards.</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Fri, 17 Oct 2008 09:27:21 +0800</pubDate>
        </item>
        <item>
            <title>E-Utama</title>
            <link>http://forum.lowyat.net/topic/796225</link>
            <description>Hello guys, I am wondering what is the environment and is this company as good as it sounds on the interview???</description>
            <author>rukawa</author>
            <category>Jobs &amp;amp; Careers</category>
            <pubDate>Sat, 20 Sep 2008 01:26:07 +0800</pubDate>
        </item>
        <item>
            <title>JSP with Javascript</title>
            <link>http://forum.lowyat.net/topic/659906</link>
            <description>Below is the javascript form which I have made&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;script language=&amp;#39;javascript&amp;#39;&amp;#62;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;	function submitForm&amp;#40;&amp;#41; {&lt;br /&gt; &amp;nbsp;document.testA.submit&amp;#40;&amp;#41;;&lt;br /&gt;	}&lt;br /&gt;	&lt;br /&gt;	function sendCheck&amp;#40;&amp;#41; {&lt;br /&gt; &amp;nbsp;/* What Should be In here if I would want to pass the checkbox value */&lt;br /&gt;	}&lt;br /&gt;&lt;br /&gt;&amp;#60;/script&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Below is the jsp form which I had done. &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;input type=&amp;#39;button&amp;#39; value=&amp;#39;Another Function&amp;#39; onClick=&amp;#39;sendCheck&amp;#40;&amp;#41;;&amp;#39;&amp;#62;&lt;br /&gt;&amp;#60;form name=&amp;#39;testA&amp;#39; method=&amp;#39;post&amp;#39; action=&amp;#39;someCtrl&amp;#39;&amp;#62;&lt;br /&gt;&amp;#60;table&amp;#62;&lt;br /&gt;&amp;#60;%&lt;br /&gt;	for &amp;#40;int i=0;i&amp;#60;unique.length;i++&amp;#41; {	&lt;br /&gt;%&amp;#62;&lt;br /&gt; &amp;#60;tr&amp;#62;&lt;br /&gt; &amp;nbsp;&amp;#60;td&amp;#62;&amp;#60;input type=&amp;#39;checkbox&amp;#39; name=&amp;#39;Name&amp;#39; value=&amp;#39;&amp;#60;%= unique %&amp;#62;&amp;#39;&amp;#62;&amp;#60;/td&amp;#62;&lt;br /&gt; &amp;#60;/tr&amp;#62;&lt;br /&gt;&amp;#60;%&lt;br /&gt;	} &lt;br /&gt;%&amp;#62;&lt;br /&gt;&lt;br /&gt;&amp;#60;/table&amp;#62;&lt;br /&gt;&amp;#60;input type=&amp;#39;button&amp;#39; value=&amp;#39;Delete File&amp;#39; onClick=&amp;#39;submitForm&amp;#40;&amp;#41;;&amp;#39;&amp;#62;&lt;br /&gt;&amp;#60;/form&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Well, based on the button if I click Delete File while selecting any checkboxes, it will pass the value. Now, problem is if I wanted to select any checkboxes and click the Another Function button which calls the sendCheck() javascript method while passing the desired checkbox value to the servlet. Anyway of sending it to the servlet file I have? Then retrieving it using &lt;br /&gt;&lt;br /&gt;request.getParameterValues(&amp;quot;Name&amp;quot;);&lt;br /&gt;&lt;br /&gt;Thanks man. Appreciate anyones help&amp;#33;</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Wed, 26 Mar 2008 11:47:41 +0800</pubDate>
        </item>
        <item>
            <title>Converting util.Date() to sql.Date() with time</title>
            <link>http://forum.lowyat.net/topic/650398</link>
            <description>Regarding SQL and Java&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve got a date column with format like &lt;br /&gt;&lt;br /&gt;2/26/2008 5:06:05 PM&lt;br /&gt;&lt;br /&gt;Now using java assuming I get Date&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;Date date = new Date&amp;#40;&amp;#41;;&lt;br /&gt;&lt;br /&gt;/* I would love to convert this util.Date&amp;#40;&amp;#41; into a java.sql.Date&amp;#40;&amp;#41; while preserving the time too. &lt;br /&gt;What I meant was if I use */&lt;br /&gt;&lt;br /&gt;bean.setDate&amp;#40;new java.sql.Date&amp;#40;date.getTime&amp;#40;&amp;#41;&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;The above converts it successfully but without the 5:06:05 PM being saved along with this. How do I save the time along with the date&amp;#33;</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Wed, 12 Mar 2008 16:30:22 +0800</pubDate>
        </item>
        <item>
            <title>IO Write File then Download&amp;#33;</title>
            <link>http://forum.lowyat.net/topic/619315</link>
            <description>&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OutputStreamWriter out2;&lt;br /&gt; &amp;nbsp; &amp;nbsp;	String fileName = &amp;#34;abc.txt&amp;#34;;&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;System.out.println&amp;#40;&amp;#34;Stream got close bo&amp;#33;&amp;#33;&amp;#34;&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp;	out2 = new OutputStreamWriter&amp;#40;new FileOutputStream&amp;#40;&amp;#34;c&amp;#58;/aaa/&amp;#34;+fileName&amp;#41;&amp;#41;;&lt;br /&gt;	Writer pr = new BufferedWriter&amp;#40;out2&amp;#41;;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;	&lt;br /&gt; &amp;nbsp;pr.write&amp;#40;&amp;#34;9terer&amp;#34;&amp;#41;;&lt;br /&gt;	&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;As seen above this is part of the code for me to write to files, the problem is that within the same servlet, I tried calling the &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;response.setContentType&amp;#40;&amp;#34;application/octet-stream&amp;#34;&amp;#41;;&lt;br /&gt;response.setHeader&amp;#40;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;#34;Content-disposition&amp;#34;, &amp;#34;attachment; filename=&amp;#092;&amp;#34;&amp;#34; + fileName + &amp;#34;&amp;#092;&amp;#34;&amp;#34;&amp;#41;;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;but it will come out a duplicate of that file with no contents. IO stuffs really mess me up. &lt;br /&gt;&lt;br /&gt;So as the above, anyone who can write a file and then save it using java then set the response to work properly</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Fri, 25 Jan 2008 13:41:16 +0800</pubDate>
        </item>
        <item>
            <title>Tomcat 5 configuration</title>
            <link>http://forum.lowyat.net/topic/584534</link>
            <description>Yes, Have been using Tomcat 4 all this while, then now since I will be using Tomcat 5, anyone knows how to define the context path&lt;br /&gt;&lt;br /&gt;Example previously in Tomcat 4 inside the &amp;lt;host&amp;gt; part&lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;&amp;#60;Context path=&amp;#34;/Project&amp;#34; reloadable=&amp;#34;true&amp;#34; docBase=&amp;#34;D&amp;#58;&amp;#092;WORKSPACE&amp;#092;Project&amp;#34; workDir=&amp;#34;D&amp;#58;&amp;#092;WORKSPACE&amp;#092;Project&amp;#092;work&amp;#092;org&amp;#092;apache&amp;#092;jsp&amp;#34; /&amp;#62;&lt;br /&gt;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Now with Tomcat 5 and 5.5 there is a context.xml. So how do I go adding those???&lt;br /&gt;&lt;br /&gt;Anyone with any clue about this? I tried adding the above into the context.xml and I get an Error 404. Thanks in advance&amp;#33;&lt;br /&gt;&lt;br /&gt;</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Tue, 04 Dec 2007 14:51:25 +0800</pubDate>
        </item>
        <item>
            <title>Combining Eclipse with JBoss</title>
            <link>http://forum.lowyat.net/topic/583884</link>
            <description>Would like to ask for anyone out there, been searching through some java in google, but I guessed I don&amp;#39;t really know where to look for.&lt;br /&gt;&lt;br /&gt;Take for an instance a method &lt;br /&gt;&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;public Collection&amp;#60;UserGroup&amp;#62; getUserAttachedGroups&amp;#40;&amp;#41;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Anywhere which I could get references for this type??&lt;br /&gt;&lt;br /&gt;Might ask other questions along the way&amp;#33;&amp;#33;</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Mon, 03 Dec 2007 15:33:12 +0800</pubDate>
        </item>
        <item>
            <title>Writing Cheque Numbers into Words</title>
            <link>http://forum.lowyat.net/topic/482501</link>
            <description>As per above topic,&lt;br /&gt;&lt;br /&gt;Looking at cheques issued, if the data obtained is in number format. Any way which I can do to convert it into cheques style wording.&lt;br /&gt;&lt;br /&gt;For example&lt;br /&gt;&lt;br /&gt;1500.50 = One Thousand Five Hundred and Cents Fifty Only&lt;br /&gt;&lt;br /&gt;Maybe there are plugins.. Anyone could share?</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Tue, 03 Jul 2007 16:35:53 +0800</pubDate>
        </item>
        <item>
            <title>Abdullah Badawi&amp;#39;s news top in The Star</title>
            <link>http://forum.lowyat.net/topic/313328</link>
            <description>&lt;a href='http://thestar.com.my/news/story.asp?file=/2006/7/13/nation/14822814&amp;sec=nation' target='_blank'&gt;http://thestar.com.my/news/story.asp?file=...2814&amp;sec=nation&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ok is kinda stupid, but I&amp;#39;ve got owned, I believe everyone got owned believing it to be the top news.</description>
            <author>rukawa</author>
            <category>Jokes Heaven</category>
            <pubDate>Thu, 13 Jul 2006 16:30:11 +0800</pubDate>
        </item>
        <item>
            <title>Hair Saloon</title>
            <link>http://forum.lowyat.net/topic/307499</link>
            <description>How to enrol into learning hair saloon cutting? As in becoming a student to learn to cut hair in a saloon. Anyone has the experience?</description>
            <author>rukawa</author>
            <category>Education Essentials</category>
            <pubDate>Thu, 29 Jun 2006 15:06:56 +0800</pubDate>
        </item>
        <item>
            <title>Do Not Curse</title>
            <link>http://forum.lowyat.net/topic/306686</link>
            <description>This is an extract from a website on Japanese students' English essay:&lt;br /&gt;&lt;i&gt;&lt;br /&gt;One day I saw many people around my house. Under the pale moon, we started fighting. Then suddenly, God came, I said &quot;What the fack?&quot; and he said to us, &quot;Hi guys, stop fighting&amp;#33;&quot; We said &quot;F*CK YOU.&quot; All of us were killed in a moment.&lt;br /&gt;&lt;/i&gt;&lt;br /&gt;Cor&amp;#33; Blimey&amp;#33;&lt;br /&gt;&lt;br /&gt;Not sure whether posted before</description>
            <author>rukawa</author>
            <category>Jokes Heaven</category>
            <pubDate>Tue, 27 Jun 2006 18:20:22 +0800</pubDate>
        </item>
        <item>
            <title>PdfPTable to set colspan</title>
            <link>http://forum.lowyat.net/topic/282070</link>
            <description>I am having trouble with itext in java.&lt;br /&gt;Using PdfPTable, I can&amp;#39;t find the way to add colspan unlike in normal document where you can use Cell to add colspan. &lt;br /&gt;&lt;br /&gt;Example if I want to add in 2 columns I will declare&lt;br /&gt;&lt;!--c1--&gt;&lt;div class='codetop'&gt;CODE&lt;/div&gt;&lt;div class='codemain'&gt;&lt;!--ec1--&gt;&lt;br /&gt;PdfPTable table = new PdfPTable&amp;#40;2&amp;#41;;&lt;!--c2--&gt;&lt;/div&gt;&lt;!--ec2--&gt;&lt;br /&gt;&lt;br /&gt;Now if I want the next data to cover both the column, what should I do?</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Fri, 28 Apr 2006 14:40:16 +0800</pubDate>
        </item>
        <item>
            <title>Javascript Problem again</title>
            <link>http://forum.lowyat.net/topic/238974</link>
            <description>OK, it&amp;#39;s not everytime you&amp;#39;ll get this problem but hey it&amp;#39;s giving me a headache especially names that have the apostrophe &amp;#39; symbol in them&lt;br /&gt;&lt;br /&gt;especially when I am calling a javascript function which pass in variables, it&amp;#39;ll interfere with the javascript functions.&lt;br /&gt;&lt;br /&gt;Example invokeParent(&amp;#39;1&amp;#39;,&amp;#39;Oscar D&amp;#39; La Hoya&amp;#39;);&lt;br /&gt;&lt;br /&gt;Yes I know about the escape sequence, the problem is that the name is taken out from the database. Any javascript to handle this?</description>
            <author>rukawa</author>
            <category>Codemasters</category>
            <pubDate>Thu, 12 Jan 2006 12:54:41 +0800</pubDate>
        </item>
    </channel>
</rss>
