JavaServer Pages (JSP) and JSTL - Passing Data content of an inputText

Hi,I want to pass the content of an inputText to a method in the backbean when i click on a commandButton, i tried using <h:param> but what should i write in the value attribute ?
[199 byte] By [Alfred.Nagya] at [2007-11-26 23:09:10]
# 1

Hi,

I want to pass the content of an inputText to a

method in the backbean

what is a backbean?

when i click on a

commandButton

what is a commandButton?

, i tried using <h:param> but what

should i write in the value attribute ?

put the pipe down and repost when you come to

SoulTech2012a at 2007-7-10 14:04:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
1 - Try the JSF forum rather than the JSP forum2 - If the inputText field is bound to the same backing bean as your method, just retrieve the attribute in your method. You don't need to pass it as a parameter, JSF should set the value for you.
evnafetsa at 2007-7-10 14:04:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3

It is sufficient to define a getter and setter for the inputText field.

JSF

<h:form>

<h:inputText value="#{myBean.input}" />

<h:commandButton value="submit" action="#{myBean.submit}" />

</h:form>

MyBean

private String input;

public void submit() {

// The input value is just available in here.

System.out.println(input);

}

public String getInput() {

return input;

}

public void setInput(String input) {

this.input = input;

}

BalusCa at 2007-7-10 14:04:08 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...