Greetings!!

I have a very simple page with runs in Tomcat 4.1.30 but not in Tomcat 5.5.9
The page will be displayed in the browser. When I input Text in
the input Field and press the Send Button, the form will be send
to the server but the method (showData) in the bean wouldn't be
called. After that the form is displayed again and the input
field is blank.
What is the problem with Tomcat 5.5.9

Here the Page

<%@ page pageEncoding="Cp1252" contentType="text/html; charset=Cp1252" %>
<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/extensions"; prefix="x" %>
<html>
  <%@ include file="inc/head.inc" %>
  <body bgcolor="#FFFFFF">
    <f:view>
          <h:form>
           <h:inputText id="testfeld"
value="#{testBean.testfeld}"></h:inputText>
           <x:commandButton  action="#{testBean.showData}" value="Send">
           </x:commandButton>
      </h:form>
    </f:view>
  </body>
</html>

An here the Bean

package de.test.view.bean;

public class TestBean extends BaseBean {
    private String testfeld;
    public TestBean() {
        super();
    }

    public String getTestfeld() {
        return testfeld;
    }
    public void setTestfeld(String testfeld) {
        this.testfeld = testfeld;
    }
    public String showData() {
        System.out.println("testfeld:"+testfeld);
        return "ok";
    }
}

Have anybody an hint for me? I don't know what the problem is.

Thanks and greetings,

Wolfgang Klaus


Reply via email to