Greeting Page | Table Page | New Node Page | Form Page

This page shows a span of text that is replaced with the GREETING value from the GreetingServlet class. You can change the greeting by selecting the GreetingServlet.java file and editing the line:

  private final String GREETING = "Hello World!";

If you are running the application, you can shutdown and restart the server from your IDE to recompile the servlet and see the new greeting value take effect.

The html for the span is:
  <span id="spanGreeting">message</span>
            
Below is the actual span with the current Greeting value:

message

The code from GreetingServlet.java that modifies the span is:

          
public GreetingHTML createPage() {
    GreetingHTML page = null;
    HTMLElement  element = null;

    page = new GreetingHTML();
    element = page.getElementSpanGreeting();
    element.getFirstChild().setNodeValue(GREETING);
    return page;
}            
            

Lutris | Enhydra

Kelp