Julian Jewel's Weblog()

Julian Jewel

Subscribe to Julian Jewel: eMailAlertsEmail Alerts
Get Julian Jewel: homepageHomepage mobileMobile rssRSS facebookFacebook twitterTwitter linkedinLinkedIn


Related Topics: Intel XML, XML Magazine, SOA Best Practices Digest, SOA & WOA Magazine, Java Developer Magazine, Software Testing Journal, Open Source AJAX

Blog Post

Echo3 HelloWorld

Here’s a Echo3 application in 3 steps

Java Developer's Magazine

Here’s a Echo3 application in 3 steps -

1) Create HelloWorld.java
public class HelloWorld extends ApplicationInstance {
public Window init() {
Window window = new Window();

ContentPane contentPane = new ContentPane();
window.setContent(contentPane);

Label label = new Label("Hello, world!");
contentPane.add(label);

return window;
}
}

2) Create the HelloWorldServlet
public class HelloWorldServlet extends WebContainerServlet {
@Override
public ApplicationInstance newApplicationInstance() {
return new HelloWorld();
}
}

3) Change web.xml

<servlet>
<servlet-name>HelloWorld</servlet-name>
<servlet-class>
gov.va.med.datasharing.mgr.HelloWorldServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorld</servlet-name>
<url-pattern>/HelloWorld/*</url-pattern>
</servlet-mapping>

Read the original blog entry...

More Stories By Julian Jewel

Julian is one of the country's foremost experts in software design, process, and construction. He regularly speaks at major technical conferences. Not only is Julian an expert architect and programmer, he excels at passing his knowledge on to others as both a consultant and educator.

Having worked as a CTO, Julian is also in a unique position to assess and improve both your software and your software-development process. If you're a nontechnical CEO, he can help you bootstrap your startup or analyze (and help you improve) your existing software organization. He regularly does one-on-one CEO and CTO-coaching sessions, and can train individual teams and entire departments on Object-Oriented design/UML, Agile process, and languages.