Struts2 passing JavaBean to action as parameter -
how can pass javabean object action parameter?
for example have action(databean javabean):
1)
public class simpleaction extends actionsupport {  private static final long serialversionuid = 1l;  private databean databean;   public string execute() throws exception {       system.out.println("simpleaction executing");     system.out.println(databean.getmindate().tostring());      return success; }   public databean getdatabean() {     return databean; }   public void setdatabean(databean databean) {     this.databean = databean; } 2)then want call action jsp not string parameter(databean):
for example:
<s:url  var="simple" action="simple">   <s:param name = "databean" value="#request.databean"/> </s:url> 3) need make conversion of type databean object string or vice versa?
4) possible use such construction in struts2?
5) please explain , example of code good
 
 
  
Comments
Post a Comment