struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brati.sankargh...@tcs.com
Subject Re: connection pooling
Date Thu, 20 May 2004 05:27:54 GMT
If 5 users are simultaneously using the database connections then you need 
to create more connections.

Brati Sankar Ghosh
Tata Consultancy Services
Mailto: brati.sankarghosh@tcs.com
Website: http://www.tcs.com



Lokanath <lokanath@molecularconnections.com> 
Sent by: lokanath@molecularconnections.com
05/20/2004 10:11 AM

Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
connection pooling






hi all

i have a doubt over connection pooling.When 5 users are using a project in
struts and if i have defined the maximumnumber of connection to 4 .Then 
how
many connection will be estblished.What i mean to say is how many visible
connection will be there in mysqlprocess

              lokanath

-----Original Message-----
From: Struts Users Mailing List [mailto:user@struts.apache.org]
Sent: Thursday, May 20, 2004 4:19 AM
To: struts-user@jakarta.apache.org
Subject: Multiple nested Hashmaps. Limit?


I am running into a problem with multiple Mapped nested properties



When I use the following lines to access the Value form my dynaValueObj
Object I get this error

<%

  String
value="dynaTableObj.dynaRowObjs("+rowNm+").dynaValueObjs("+key+").dynaCo
lumnValue";

%>



<html:text name="DynaTableDataForm" property="<%=rowNmdd%>" size="20"/>



[ServletException in:/WEB-INF/src/jsp/dyna/dynaTableData.jsp] Null
property value for 'dynaValueObjs(1)''



After tracing I found that it is not calling getDynaValueObjs(String xx)
but calling getDynaValueObjs().



Is there a limitation on how many map-backed properties you can
reference?



Thanks

Randy Shelley

rshelley@sc.edu





---------- Dyna Table Form Bean

public class DynaTableDataForm extends ActionForm {



  private DynaTableObj dynaTableObj = null;



  public DynaTableObj getDynaTableObj () {

    if (this.dynaTableObj==null) {

      this.dynaTableObj = new DynaTableObj();

    }

    return this.dynaTableObj;

  }

  public void setDynaTableObj (DynaTableObj dynaTableObj) {

    this.dynaTableObj = dynaTableObj;

  }

}

------------------------ Dyna Table Object

public class DynaTableObj {

  private LinkedHashMap dynaColumnObjs = null;



  public DynaTableObj() {}



  public void setDynaColumnObjs(LinkedHashMap dynaColumnObjs) {

    this.dynaColumnObjs = dynaColumnObjs;

  }

  public LinkedHashMap getDynaColumnObjs() {

    return this.dynaColumnObjs;

  }

  public Object getDynaColumnObjs(String dynaColumnId) {

    if (dynaColumnObjs==null) {

      this.dynaColumnObjs = new LinkedHashMap();

      this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

    }

    else if (this.dynaColumnObjs.get(dynaColumnId)==null) {

      this.dynaColumnObjs.put(dynaColumnId,new DynaColumnObj());

    }

    return this.dynaColumnObjs.get(dynaColumnId);

  }



  public void setDynaColumnObjs(String dynaColumnId,Object
dynaColumnObj) {

    if (dynaColumnObjs==null) {

      this.dynaColumnObjs = new LinkedHashMap();

    }

    this.dynaColumnObjs.put(dynaColumnId,dynaColumnObj);

  }

}

---------------------- Dyna Row Object

public class DynaRowObj {

  private LinkedHashMap dynaValueObjs = null;



  public DynaRowObj() {}



  public void setDynaValueObjs(LinkedHashMap dynaColumnObjs) {

    this.dynaValueObjs = dynaValueObjs;

  }

  public LinkedHashMap getDynaValueObjs() {

    return this.dynaValueObjs;

  }

  public Object getDynaValueObjs(String dynaColumnId) {

    if (dynaValueObjs==null) {

      this.dynaValueObjs = new LinkedHashMap();

      this.dynaValueObjs.put(dynaColumnId,new DynaValueObj());

    }

    else if (this.dynaValueObjs.get(dynaColumnId)==null) {

      this.dynaValueObjs.put(dynaColumnId,new DynaColumnObj());

    }

    return this.dynaValueObjs.get(dynaColumnId);

  }

  public void setDynaValueObjs(String dynaColumnId,Object dynaValueObj)
{

    if (dynaValueObjs==null) {

      this.dynaValueObjs = new LinkedHashMap();

    }

    this.dynaValueObjs.put(dynaColumnId,dynaValueObj);

  }

}



----------------------------- Dyna Value Object

package rshelley.timesheet.util;



public class DynaValueObj {

  private String dynaColumnValue = null;



  public DynaValueObj() {

  }

  public void setDynaColumnValue(String dynaColumnValue) {

    this.dynaColumnValue = dynaColumnValue;

  }

  public String getDynaColumnValue() {

    return this.dynaColumnValue;

  }

}





---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


ForwardSourceID:NT00009596 

Mime
View raw message