
1 2 3 4 5 6 |
personBean.firstName=First name personBean.lastName=Last name personBean.age=Age personBean.email=Email thankyou=Thank you for registering %{personBean.firstName}. submit=Register |
1 2 3 4 5 6 |
personBean.firstName=Nama Depan personBean.lastName=Nama Belakang personBean.age=Umur personBean.email=Email thankyou=Terima kasih telah mendaftar %{personBean.firstName}. submit=Daftar |
1 2 |
greeting=Welcome to The Wonderful World of Struts 2 instructions=Register for a prize by completing this form. |
1 2 |
greeting=Selamat Datang di Dunia Hebat Struts2 instructions=Mendaftar untuk hadiah dengan mengisi formulir ini. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
<body> <h1>Welcome To Struts 2!</h1> <p><a href="<s:url action='hello'/>">Hello World</a></p> <s:url action="hello" var="helloLink"> <s:param name="userName">Bruce Phillips</s:param> </s:url> <p><a href="${helloLink}">Hello Bruce Phillips</a></p> <p>Get your own personal hello by filling out and submitting this form.</p> <s:form action="hello"> <s:textfield name="userName" label="Your name" /> <s:submit value="Submit" /> </s:form> <s:url action="registerInput" var="registerInputLink" > <s:param name="request_locale">en</s:param> </s:url> <p><a href="${registerInputLink}">Please register</a> for our prize drawing.</p> <s:url action="registerInput" var="registerInputLinkID"> <s:param name="request_locale">in_ID</s:param> </s:url> <p><a href="${registerInputLinkID}">Silahkan Daftar</a> Untuk mendapatkan penawaran dari kami.</p> <hr /> <s:text name="contact" /> </body> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Register</title> <s:head /> </head> <body> <h1><s:text name="greeting" /></h1> <h3><s:text name="instructions" /></h3> <s:form action="register"> <s:textfield key="personBean.firstName" /> <s:textfield key="personBean.lastName" /> <s:textfield key="personBean.email" /> <s:textfield key="personBean.age" /> <s:submit key="submit" /> </s:form> <hr /> <s:text name="contact" /> </body> </html> |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Registration Successful</title> </head> <body> <h3><s:text name="thankyou" /></h3> <p>Your registration information: <s:property value="personBean" /> </p> <p><a href="<s:url action='index' />" >Return to home page</a>.</p> <hr /> <s:text name="contact" /> </body> </html> |
Selamat mencoba,
salam berbagi,
wijaksana
Pages: 1 2