Hi,

I do a little modification, i changed the structure of my struts.xml
for this

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd";>
<struts>
   <constant name="struts.enable.DynamicMethodInvocation"
value="false" />
   <constant name="struts.devMode" value="false" />
   <package name="Actions" extends="struts-default">
       <action name="Hello" class="Actions.Hello">
           <result>/index.jsp</result>
       </action>
   </package>
</struts>

And the index.jsp looks like this

<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
   <head>
       <title>Hello</title>
   </head>
   <body bgcolor="white">
       <img src="duke.waving.gif">
       <h2>Hello, my name is Duke. What's yours?</h2>
       <s:form action="Hello">
           Your name: <s:textfield key="username"/>
           <s:submit/><s:reset/>
       </s:form>
       <h2><s:property value="message" /></h2>
       <p><b><s:property value="username" /></b>
   </body>
</html>

But i don't understand why the result display the name of the
textfield in the page?
like this

#########################################
Hello, my name is Duke. What's yours?
Your name:
username: <textField>

Hello!
andres
##########################################


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java 
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to 
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to