title: How to get the value of variable from action class of Struts 2 to textfield of Jsp?
body: <p>My action class looks like this</p>
  
  <pre><code>class My action class {
  
    public String getvariable() {
      return variable;
    }
  
    public void setvariable(String variable) {
      this.variable = variable;
    }
  
    public dosubmit(){
      variable=service.getvariable();
      return "success";
    }
  }
  </code></pre>
  
  <p>By using this property tag of struts 
  I am able to fetch variable's value in JSP.</p>
  
  <p>But I want the value in a textfield of JSP.
  How can I do that?</p>
  
  <p>How to get this variables value in jsp variable in the next jsp file, so that i can manipulate this value.</p>