<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ladysign Dev Blog &#187; java</title>
	<atom:link href="http://www.ladysign-apps.com/blog/category/code/java/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ladysign-apps.com/blog</link>
	<description>Girls can code.</description>
	<lastBuildDate>Mon, 12 Dec 2011 16:58:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Invoke a Java Servlet with Javascript</title>
		<link>http://www.ladysign-apps.com/blog/code/javascript/invoke-a-java-servlet-with-javascript/</link>
		<comments>http://www.ladysign-apps.com/blog/code/javascript/invoke-a-java-servlet-with-javascript/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 15:05:31 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[request]]></category>
		<category><![CDATA[servlet]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=830</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 3 out of 5 stars<br />
It is possible to invoke a Java Servlet from your Javascript.<br />
Just implement this code. Please see the comments in the fu[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/javascript/invoke-a-java-servlet-with-javascript/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 3 out of 5 stars<br />
It is possible to invoke a Java Servlet from your Javascript.<br />
Just implement this code. Please see the comments in the function.</p>
<pre class="brush: jscript; title: ;">var request;
/*
 * doRequest
 * param servletName - Javascript String, Servlet name (as implemented in your config)
 * param servletArguments - Javascript String, any parameters
 */
function doSomeRequest(servletName, servletArguments){
    var servlet = servletName;
    var arg = servletArguments;
    var req = servlet + &quot;?&quot; + arg;

    addRequest(req);
    request.onreadystatechange = function(){
        //do something with the response
    }
}

function addRequest(req) {
    try {   //create a request for netscape, mozilla, opera, etc.
        request = new XMLHttpRequest();
    }catch (e) {

        try {    //create a request for internet explorer
            request = new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;);
        }catch (e) {   //do some error-handling
            alert(&quot;XMLHttpRequest error: &quot; + e);
        }
    }

    request.open(&quot;GET&quot;, req, true);   //prepare the request
    request.send(null);   //send it
    return request;   //return the request
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/javascript/invoke-a-java-servlet-with-javascript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spring 2.5 Core Training</title>
		<link>http://www.ladysign-apps.com/blog/code/java/spring-25-core-training/</link>
		<comments>http://www.ladysign-apps.com/blog/code/java/spring-25-core-training/#comments</comments>
		<pubDate>Fri, 15 May 2009 18:24:48 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[spring]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[jdbc]]></category>
		<category><![CDATA[jms]]></category>
		<category><![CDATA[mvc]]></category>
		<category><![CDATA[springsource]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/archives/695</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 4 out of 5 stars</p>
<p>Just back from a interesting training week at SpringSource in Amsterdam, where I participated the Core Spring 2.5 trainin[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/java/spring-25-core-training/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 4 out of 5 stars</p>
<p>Just back from a interesting training week at SpringSource in Amsterdam, where I participated the Core Spring 2.5 training. The course covered the following topics:</p>
<ul>
<li>Spring 2.5 Dependency Injection</li>
<li>Aspect Oriented Programming (AOP)</li>
<li>J-Unit 4</li>
<li>JDBC / DAO</li>
<li>Hibernate</li>
<li>Webflow / MVC</li>
<li>RMI</li>
<li>JMS</li>
</ul>
<p>Curious? The SpringSource Tool Suite is just released as opensource. Which mean you can <a href="http://www.springsource.com/products/sts">download the IDE</a> (Eclipse based) for free.<br />
Since I want more Spring, I will now start reading the book: <a href="http://www.amazon.com/Spring-Action-Craig-Walls/dp/1933988134/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1242411807&#038;sr=8-1"">Spring in Action from Craig Walls</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/java/spring-25-core-training/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>J-Spring 2009 java conference</title>
		<link>http://www.ladysign-apps.com/blog/code/java/j-spring-2009-java-conference/</link>
		<comments>http://www.ladysign-apps.com/blog/code/java/j-spring-2009-java-conference/#comments</comments>
		<pubDate>Wed, 15 Apr 2009 18:53:57 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[dci]]></category>
		<category><![CDATA[google android]]></category>
		<category><![CDATA[j-spring]]></category>
		<category><![CDATA[jspring]]></category>
		<category><![CDATA[mda]]></category>
		<category><![CDATA[mdd]]></category>
		<category><![CDATA[nljug]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=592</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>I think, the Dutch Java User Group (<a href="http://www.nljug.org/">NLJUG</a>) is one of the best (Java) usergroups. Twice a year they organise a Java confer[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/java/j-spring-2009-java-conference/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p>I think, the Dutch Java User Group (<a href="http://www.nljug.org/">NLJUG</a>) is one of the best (Java) usergroups. Twice a year they organise a Java conference event; J-Fall and J-Spring.<br />
Today I just came back from J-Spring 2009. It was a very nice day with a lot of interesting information.</p>
<p>After the opening words, we had a keynote session with <a href="http://www.atlassian.com/">Atlassian</a> (Australian company &#8211; Confluence/Jira) about Agile development.<br />
Afterwards I got to see a session from Xebia &#8220;DCI &#8211; Programming based on roles.&#8221;<br />
It was very interesting, a <a href="http://www.xebia.com/dci">download of the DCI presentation can be found here</a>. Then I saw the very technical session from Angelika Langer, &#8220;Java Programming in a Multicore world&#8221;.</p>
<p>I&#8217;ve also seen sessions about MDA &#8211; Model Driven Architecture; how you can generate code from UML diagrams. The key is, that you won&#8217;t generate all code, but extend it manual.<br />
A bottom-top pragmatic solution would be the best.</p>
<p>But the most informative and coolest session was the session about Google Android. The mobile phone platform from Google, based on Linux and Dalvik VM. You can download and try the Android Eclipse plugin from the <a href="http://developer.android.com/">Android Developer site</a>, aswell as order a Google Developer G1 phone. (Which you can connect to your Eclipse IDE, and debug on the fly.)</p>
<p>After all these tech fun, I&#8217;m gonna relax a bit, and check out my new ordered book: &#8220;Flex on Rails&#8221;.<br />
What a nice day of a developer.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/java/j-spring-2009-java-conference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Hippo (a Java CMS)</title>
		<link>http://www.ladysign-apps.com/blog/code/java/working-with-hippo-a-java-cms/</link>
		<comments>http://www.ladysign-apps.com/blog/code/java/working-with-hippo-a-java-cms/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 12:07:59 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[getting started]]></category>
		<category><![CDATA[hippo]]></category>
		<category><![CDATA[java cms]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=584</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p><strong>Getting started</strong><br />
We will run Hippo CMS via the Jetty Application Container,<br />
which is included in the Quickstart <a href="http://repository.hippocms.org/maven2/org/hippoecm/hippo-ecm-quickstart-bin/2.03.00/hippo-ecm-quickstart-bin-2.03.00.zip"><br />
Hippo CMS[......]</a></p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/java/working-with-hippo-a-java-cms/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p><strong>Getting started</strong><br />
We will run Hippo CMS via the Jetty Application Container,<br />
which is included in the Quickstart <a href="http://repository.hippocms.org/maven2/org/hippoecm/hippo-ecm-quickstart-bin/2.03.00/hippo-ecm-quickstart-bin-2.03.00.zip"><br />
Hippo CMS download package</a>.<br />
Download it and unzip it. For example:<br />
D:Projectshippo-ecm</p>
<p>Make sure a Java JDK is installed:<br />
<a href="http://ladysign-apps.com/blog/archives/573"><br />
See my other blog post</a></p>
<p>Open the windows command line and type: start.bat<br />
in the folder where Hippo CMS is installed.<br />
For example:</p>
<pre class="brush: jscript; title: ;">
D:Projectshippo-ecmstart.bat
</pre>
<p>When this line is returned in your prompt:</p>
<pre class="brush: jscript; title: ;">
SelectChannelConnector@127.0.0.1:8080
</pre>
<p>you can open a new browser window, and locate:<br />
<strong>http://localhost:8080/cms/</strong></p>
<p>Login to Hippo with: username = admin and password = admin.</p>
<p><strong>Change the admin password</strong><br />
Click on the &#8216;gear icon&#8217;, to access the control panel.<br />
Click, on the &#8216;users&#8217; panel, &#8216;admin&#8217; user, &#8217;set password&#8217;.</p>
<pre class="brush: jscript; title: ;">
Users  User: admin  Set password for admin
</pre>
<p>Type in your new password and press Save.<br />
In the user panel, you can also create new users and user groups.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/java/working-with-hippo-a-java-cms/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup a Java environment</title>
		<link>http://www.ladysign-apps.com/blog/code/java/setup-a-java-environment/</link>
		<comments>http://www.ladysign-apps.com/blog/code/java/setup-a-java-environment/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 10:53:55 +0000</pubDate>
		<dc:creator>Lee</dc:creator>
				<category><![CDATA[java]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://ladysign-apps.com/blog/?p=573</guid>
		<description><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p><strong>Java JDK Installation</strong><br />
1. Download a JDK: <a href="http://www.java.net/download/jdk6/6u14/promoted/b04/binaries/jdk-6u14-ea-bin-b04-windows-i586-01_apr_2009.exe">Java JDK6</a>.<br />
2. Run the installer.</p>
<p><strong>Environment variables</strong><br />
1. Make a new environment[......]</p><p class='read-more'><a href='http://www.ladysign-apps.com/blog/code/java/setup-a-java-environment/'>继续阅读</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>Difficulty:</strong> 1 out of 5 stars</p>
<p><strong>Java JDK Installation</strong><br />
1. Download a JDK: <a href="http://www.java.net/download/jdk6/6u14/promoted/b04/binaries/jdk-6u14-ea-bin-b04-windows-i586-01_apr_2009.exe">Java JDK6</a>.<br />
2. Run the installer.</p>
<p><strong>Environment variables</strong><br />
1. Make a new environment variable called:  <strong>JAVA_HOME</strong><br />
<em>a. For XP: windows key + pause/break key -> &#8220;properties&#8221; -> tab &#8220;Advanced&#8221; -> &#8220;Environment Variables&#8221;<br />
b. For Vista: windows key + pause/break key -> &#8216;advanced settings&#8217; &#8211; -> tab &#8220;Advanced&#8221; -> &#8220;Environment Variables&#8221;</em><br />
Click &#8216;New&#8217; at &#8220;System Variables&#8221;. &#8220;JAVA_HOME&#8221; and set it to where the JDK is located i.e. C:\Program Files\Java\jdk1.6.0_14<br />
3. Now modify the &#8220;PATH&#8221; variable and <strong>add</strong> your new variable &#8220;%JAVA_HOME%\bin;&#8221; at the start of the line. Leave the rest as is!</p>
<p><strong>Checks</strong><br />
1. Open the command line, type: &#8216;Set&#8217; to see if the environment variables are correct.<br />
2. Type: &#8216;java -version&#8217;, to check which Java version is installed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ladysign-apps.com/blog/code/java/setup-a-java-environment/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

