Perhaps I'm missing something, but IMO this is the same as for any field: the value attribute of a Struts2 tag looks up the respective property in your stack. In the typical scenario, when you type, say, <s:textarea value="comment" ..>
Struts2 will use the MyAction.getComment()
and MyAction.setComment()
to read/write the textarea value. Then, you just have to assign a default value for the attribute in your action -which, BTW, is conceptually the right way.
public class MyAction extends ActionSupport {
public final static String DEFAULT_COMMENT = "Default value...";
private String comment = DEFAULT_COMMENT;
//... getters setters follow
}