title: reading a object in jsp struts 2
body: <p>I am working on struts 2 and i need to populate my textfield using some value from db.</p>
  
  <p>I am able to retrieve the value from db however i am not able to get the value in my jsp ussing struts2 tag.</p>
  
  <p>Below is my action class : </p>
  
  <pre><code>package com.equant.circuit.ppd.action;
  
  import java.util.ArrayList;
  import java.util.Date;
  import java.util.List;
  
  import javax.servlet.http.HttpServletRequest;
  
  import com.equant.circuit.action.AdminAction;
  import com.equant.circuit.ecms.domain.CSBReleaseDetailsBean;
  import com.equant.circuit.manager.PPDManager;
  import com.equant.common.util.ProxyUtils;
  import com.equant.newcommon.util.CCRLogger;
  import com.sun.org.apache.bcel.internal.generic.NEW;
  
  
  
  
  public class CSBUploadAction extends BaseAction  {
  
  
      PPDManager managerPPD = (PPDManager) ProxyUtils.getManager(PPDManager.class);
      private static final long serialVersionUID = 1L;
      private CSBReleaseDetailsBean[] cSBReleaseDetailsBeanList;
      private HttpServletRequest request;
      private List &lt;Specification&gt; changeSpecificationDetailsList = new ArrayList&lt;Specification&gt;();
      private Specification specificationBean = new Specification();
      private String serialNo;
  
      private String relNo;
      public String getSerialNo() {
          return serialNo;
      }
  
      public void setSerialNo(String serialNo) {
          this.serialNo = serialNo;
      }
  
      public String getRelNo() {
          return relNo;
      }
  
      public void setRelNo(String relNo) {
          this.relNo = relNo;
      }
  
      public String getRfcNo() {
          return rfcNo;
      }
  
      public void setRfcNo(String rfcNo) {
          this.rfcNo = rfcNo;
      }
  
      public String getType() {
          return type;
      }
  
      public void setType(String type) {
          this.type = type;
      }
  
      public String getChangeNumber() {
          return changeNumber;
      }
  
      public void setChangeNumber(String changeNumber) {
          this.changeNumber = changeNumber;
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
      public Date getReleaseDate() {
          return releaseDate;
      }
  
      public void setReleaseDate(Date releaseDate) {
          this.releaseDate = releaseDate;
      }
  
      public String getRequestor() {
          return requestor;
      }
  
      public void setRequestor(String requestor) {
          this.requestor = requestor;
      }
  
      public String getDocumentLink() {
          return documentLink;
      }
  
      public void setDocumentLink(String documentLink) {
          this.documentLink = documentLink;
      }
  
      public String getStatus() {
          return status;
      }
  
      public void setStatus(String status) {
          this.status = status;
      }
  
      private String rfcNo;
      private String type;
      private String changeNumber;
      private String description;
      private Date releaseDate;
      private String requestor;
      private String documentLink;
      private String status;
      private final static CCRLogger  LOGGER  = CCRLogger.getInstance(AdminAction.class.getName());
  
  
      public HttpServletRequest getRequest() {
          return request;
      }
  
      public void setRequest(HttpServletRequest request) {
          this.request = request;
      }
  
      public List&lt;Specification&gt; getChangeSpecificationDetailsList() {
          return changeSpecificationDetailsList;
      }
  
      public void setChangeSpecificationDetailsList(
              List&lt;Specification&gt; changeSpecificationDetailsList) {
          this.changeSpecificationDetailsList = changeSpecificationDetailsList;
      }
  
  /**
   * 
   * @return
   */
      public String displayCSBUpload(){
          LOGGER.info("enterin displayCSBUpload to fetch all details from CSB_RELEASE_DETAILS");
  
          cSBReleaseDetailsBeanList = managerPPD.getCSBReleaseDetails();
          LOGGER.info("cSBReleaseDetailsBeanList size"+cSBReleaseDetailsBeanList.length);
          for(CSBReleaseDetailsBean cSBReleaseDetailsBean : cSBReleaseDetailsBeanList){    
              Specification specification = new Specification();
              specification.setSerialNo(cSBReleaseDetailsBean.getSerialNo());
              specification.setChangeNumber(cSBReleaseDetailsBean.getRfcNo());
              specification.setDescription(cSBReleaseDetailsBean.getDescription());
              specification.setDocumentLink(cSBReleaseDetailsBean.getUrl());
              specification.setReleaseDate(new Date());
              specification.setRelNo(cSBReleaseDetailsBean.getVersionNo());
              specification.setRequestor(cSBReleaseDetailsBean.getRequestor());
              specification.setStatus(cSBReleaseDetailsBean.getStatus());
              specification.setType(cSBReleaseDetailsBean.getRfcType());
              changeSpecificationDetailsList.add(specification);
              }
          LOGGER.info("Exiting displayCSBUpload to fetch all details from CSB_RELEASE_DETAILS");
          return "success";
  
      }
  
      /**
       * 
       * @return
       */
      public String fetchTicketDetails() {
          String param = getServletRequest().getParameter("sNo");
          cSBReleaseDetailsBeanList = managerPPD.getCSBTicketDetail(param);
  
          for(CSBReleaseDetailsBean cSBReleaseDetailsBean : cSBReleaseDetailsBeanList){ 
              setRelNo(cSBReleaseDetailsBean.getSerialNo());
              specificationBean.setSerialNo(cSBReleaseDetailsBean.getSerialNo());
              specificationBean.setChangeNumber(cSBReleaseDetailsBean.getRfcNo());
              specificationBean.setDescription(cSBReleaseDetailsBean.getDescription());
              specificationBean.setDocumentLink(cSBReleaseDetailsBean.getUrl());
              specificationBean.setReleaseDate(new Date());
              specificationBean.setRelNo(cSBReleaseDetailsBean.getVersionNo());
              specificationBean.setRequestor(cSBReleaseDetailsBean.getRequestor());
              specificationBean.setStatus(cSBReleaseDetailsBean.getStatus());
              specificationBean.setType(cSBReleaseDetailsBean.getRfcType());
  
          }
  
          System.out.println(cSBReleaseDetailsBeanList.length+"length of list");
          System.out.println(param+"serial no");
          return "success";
      }
  
  }
  </code></pre>
  
  <p>can you please tell me how i can read specificationBean on jsp using struts 2 tag in text fields.</p>