View RSS Feed

My Java Tips

  1. Struts”Hello World”

    by , 11-15-2011 at 06:15 PM (My Java Tips)
    Lets make a HelloWorld example using Struts.


    Suppose you want to create a simple "Hello World" example that displays a welcome message. To create a "Hello World" example, you need to do three things:

    1. Create a server page HelloWorld.jsp to present the messages

    Java Code:
    <%@ taglib prefix="s" uri="/struts-tags" %>
    <h2><s:property value="message"></s:property></h2>
    ...

    Updated 11-15-2011 at 06:21 PM by Java Tip

    Categories
    Struts