Как я могу отправить несколько переменных в JSP - PullRequest
1 голос
/ 30 апреля 2019

У меня проблемы с отправкой нескольких переменных в мой JSP.Вот мое действие:

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 не пусто Я проверил это с помощью отладчика.Вот мой JSP:

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

Я получаю infoRcn, но не lCommentaireRcn.

Можете ли вы объяснить мне, что я делаю не так, пожалуйста?

Спасибо

...