servlet获取service层的查询集合list,怎么把它传到jsp页面去,让jsp页面显示出来。

司空萧
浏览 3735回答 4
4回答

慕的地8582982

GCUILGFPYRLRUQGPFTJLPFLAIZPLNXHXGOXGWLVSCRIYSORMIYUQMKABWYBYUQOJGCMCZPFVLPRVSJAJZWSILHDGMIKSCYOXZCSDFUKUEOLNORTWEHEAJUJOEPMORNJGCRILIROLAXFISBSIQUQTQTJZWYEHEZPMCZOYOVEADAWAQYCSYNOLBECEUDABQAPMVSVKAKARNDTJZIXAKUCSIEAXTPEAYNDGJYNJSWMZIRHXZJTPFCRUDTKHKTCZPRGQFHJZIYPLZILOFPLCXNXQFVRVEADMCXWLBRTJORTJHWFOKBKNEUXTYCFISBRVDODGWYVFBLUJTJHWMVZVEAQARNWFPMIZIYVYZDNDTCSADMJZIKSCFCLAXHVEVLVMCNIAJCENJTDGQLVFUQZQMCMIYGJPYAXNKTWLHEUXGDNEAJLAXDFCMCSBLBYUXOQZWFURTDZPJAJFORAKTJZACZPSCFOZIAJGPSQGPYBEPUXNJFNXSPSFBLUJSORNXARUKSWSCZBMPBETJAQVKNRUDMCEPSOFBFZZBKAKAKACADTDFIEHJTPZPCEBXZJZIRUYWSBQNYHQTQNBJSOLBMDZCZMCLAEUXGJFXFUDZWLCTAJZCLALUYUFUKTCKTCGQNKFPNMCLUXGKNPYIPEAILAJGVSCTWMWETPZISWZVYBFBEAJENDSPSIEIENJZLNKAJNDGIYIWLMWFVSHEUXGPLHEUOTPZJMPMWZVRUQAYTCFVYOLVDNKHYHWMCFIXFWBQTXODTCYBXFHPMDNQZCZIHDFCYIROEOQNODZCLJFOYOJSOQNDZCXOYNQZNYHEVXVFHDTPMCFBWNQAWFACFJACGPQGCSIEIRNDTOZCMIXTJFURRACZWEORMDA

我的南方

把list放到session中就行了

weenhall

在后台设置request.setAttribute("number1","1")在前台可以用String number1=request.getAttribute("number");也可以直接使用EL表达式${number1}

多维空间

先用lists获取listrequest.setAttribute("target", lists);request.getRequestDispatcher("/.jsp").forward(request, response);
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java