1

I am having trouble to send multiple variables to my JSP. Here is my action :

if(rcn != null) {
            infoRcn = ficheProduitService.getInfoCcn(rcn);  //Get informations from this rcn
            lCommentaireRcn = commentaireService.getCommentaries(rcn); //Get comments from this rcn
        } else {
            rcn = rcnForm.getRcnAlternate();
            infoRcn = ficheProduitService.getInfoCcn(rcn);
            lCommentaireRcn = commentaireService.getCommentaries(rcn);  public DtoFicheProduit getInfoRcn() {
    return infoRcn;
}

public void setInfoRcn(DtoFicheProduit infoRcn) {
    this.infoRcn = infoRcn;
}

public List<DtoCommentaire> getlCommentaireRcn() {
    return lCommentaireRcn;
}

public void setlCommentaireRcn(List<DtoCommentaire> lCommentaireRcn) {
    this.lCommentaireRcn = lCommentaireRcn;
}

lCommentaire is not empty I checked it with debugger. Here is my JSP :

<s:property value="%{lCommentaireRcn}" />
<s:property value="%{infoRcn.daoFicheProduit.essentialite}" />

I get infoRcn but not lCommentaireRcn.

Can you explain me what am I doing wrong please ?

Thanks

AHn
  • 53
  • 1
  • 7

0 Answers0