为了账号安全,请及时绑定邮箱和手机立即绑定

这里的items待遍历集合只能从request中读取吗?不能从<%%>标签里定义的list直接读取吗?

https://img1.sycdn.imooc.com//5bf8d89200015cb711590657.jpghttps://img1.sycdn.imooc.com//5bf8d8cd00010c5a05380364.jpg

这里的items待遍历集合只能从request中读取吗?不能从<%%>标签里定义的list直接读取吗?

正在回答

2 回答

https://m.vk.com/@712772904-96322
https://m.vk.com/@712772904-96323
https://m.vk.com/@712772904-96324
https://m.vk.com/@712772904-96325
https://m.vk.com/@712772904-96326
https://m.vk.com/@712772904-96375
https://m.vk.com/@712772904-96376
https://m.vk.com/@712772904-96377
https://m.vk.com/@712772904-96381
https://m.vk.com/@712772904-96382
https://m.vk.com/@712772904-96383
https://m.vk.com/@712772904-96389
https://m.vk.com/@712772904-96391
https://m.vk.com/@712772904-96394
https://m.vk.com/@712772904-96395
https://m.vk.com/@712772904-96396
https://m.vk.com/@712772904-96397
https://m.vk.com/@712772904-96398
https://m.vk.com/@712772904-96405
https://m.vk.com/@712772904-96413
https://m.vk.com/@712772904-96414
https://m.vk.com/@712772904-96415
https://m.vk.com/@712772904-96417
https://m.vk.com/@712772904-96418
https://m.vk.com/@712772904-96419
https://m.vk.com/@712772904-96421
https://m.vk.com/@712772904-96422
https://m.vk.com/@712772904-96424
https://m.vk.com/@712772904-96428
https://m.vk.com/@712772904-96429
https://m.vk.com/@712772904-96430
https://m.vk.com/@712772904-96431
https://m.vk.com/@712772904-96432
https://m.vk.com/@712772904-96434
https://m.vk.com/@712772904-96435
https://m.vk.com/@712772904-96436
https://m.vk.com/@712772904-96439
https://m.vk.com/@712772904-96442
https://m.vk.com/@712772904-96443
https://m.vk.com/@712772904-96444
https://m.vk.com/@712772904-96445
https://m.vk.com/@712772904-96446
https://m.vk.com/@712772904-96448
https://m.vk.com/@712772904-96449
https://m.vk.com/@712772904-96450
https://m.vk.com/@712772904-96451
https://m.vk.com/@712772904-96452
https://m.vk.com/@712772904-96454
https://m.vk.com/@712772904-96457
https://m.vk.com/@712772904-96458
https://m.vk.com/@712772904-96459
https://m.vk.com/@712772904-96464
https://m.vk.com/@712772904-96465
https://m.vk.com/@712772904-96469
https://m.vk.com/@712772904-96471
https://m.vk.com/@712772904-96472
https://m.vk.com/@712772904-96473
https://m.vk.com/@712772904-96474
https://m.vk.com/@712772904-96475
https://m.vk.com/@712772904-96476
https://m.vk.com/@712772904-96477
https://m.vk.com/@712772904-96478
https://m.vk.com/@712772904-96481
https://m.vk.com/@712772904-96482
https://m.vk.com/@712772904-96483
https://m.vk.com/@712772904-96484
https://m.vk.com/@712772904-96485
https://m.vk.com/@712772904-96487
https://m.vk.com/@712772904-96488
https://m.vk.com/@712772904-96489
https://m.vk.com/@712772904-96490
https://m.vk.com/@712772904-96491
https://m.vk.com/@712772904-96494
https://m.vk.com/@712772904-96497
https://m.vk.com/@712772904-96498
https://m.vk.com/@712772904-96499
https://m.vk.com/@712772904-96500
https://m.vk.com/@712772904-96501
https://m.vk.com/@712772904-96503
https://m.vk.com/@712772904-96508
https://m.vk.com/@712772904-96512
https://m.vk.com/@712772904-96513
https://m.vk.com/@712772904-96514
https://m.vk.com/@712772904-96518
https://m.vk.com/@712772904-96521
https://m.vk.com/@712772904-96525
https://m.vk.com/@712772904-96531
https://m.vk.com/@712772904-96537
https://m.vk.com/@712772904-96543
https://m.vk.com/@712772904-96545
https://m.vk.com/@712772904-96546
https://m.vk.com/@712772904-96547
https://m.vk.com/@712772904-96548
https://m.vk.com/@712772904-96549
https://m.vk.com/@712772904-96550
https://m.vk.com/@712772904-96551
https://m.vk.com/@712772904-96552
https://m.vk.com/@712772904-96553
https://m.vk.com/@712772904-96554
https://m.vk.com/@712772904-96555
https://m.vk.com/@712772904-96556
https://m.vk.com/@712772904-96557
https://m.vk.com/@712772904-96558
https://m.vk.com/@712772904-96559
https://m.vk.com/@712772904-96560
https://m.vk.com/@712772904-96631
https://m.vk.com/@712772904-96632
https://m.vk.com/@712772904-96633
https://m.vk.com/@712772904-96634
https://m.vk.com/@712772904-96638
https://m.vk.com/@712772904-96640
https://m.vk.com/@712772904-96641
https://m.vk.com/@712772904-96642
https://m.vk.com/@712772904-96643
https://m.vk.com/@712772904-96645
https://m.vk.com/@712772904-96646
https://m.vk.com/@712772904-96647
https://m.vk.com/@712772904-96649
https://m.vk.com/@712772904-96650
https://m.vk.com/@712772904-96684
https://m.vk.com/@712772904-96687
https://m.vk.com/@712772904-96689
https://m.vk.com/@712772904-96690
https://m.vk.com/@712772904-96692
https://m.vk.com/@712772904-96695
https://m.vk.com/@712772904-96697
https://m.vk.com/@712772904-96699
https://m.vk.com/@712772904-96701
https://m.vk.com/@712772904-96704
https://m.vk.com/@712772904-96706
https://m.vk.com/@712772904-96708
https://m.vk.com/@712772904-96710
https://m.vk.com/@712772904-96712
https://m.vk.com/@712772904-96713
https://m.vk.com/@712772904-96714
https://m.vk.com/@712772904-96715
https://m.vk.com/@712772904-96716
https://m.vk.com/@712772904-96717
https://m.vk.com/@712772904-96718
https://m.vk.com/@712772904-96719
https://m.vk.com/@712772904-96720
https://m.vk.com/@712772904-96721
https://m.vk.com/@712772904-96722
https://m.vk.com/@712772904-96723
https://m.vk.com/@712772904-96724
https://m.vk.com/@712772904-96725
https://m.vk.com/@712772904-96726
https://m.vk.com/@712772904-96727
https://m.vk.com/@712772904-96728
https://m.vk.com/@712772904-96729
https://m.vk.com/@712772904-96730
https://m.vk.com/@712772904-96731
https://m.vk.com/@712772904-96732
https://m.vk.com/@712772904-96733
https://m.vk.com/@712772904-96734
https://m.vk.com/@712772904-96735
https://m.vk.com/@712772904-96736
https://m.vk.com/@712772904-96737
https://m.vk.com/@712772904-96738
https://m.vk.com/@712772904-96739
https://m.vk.com/@712772904-96740
https://m.vk.com/@712772904-96741
https://m.vk.com/@712772904-96742
https://m.vk.com/@712772904-96743
https://m.vk.com/@712772904-96744
https://m.vk.com/@712772904-96745
https://m.vk.com/@712772904-96746
https://m.vk.com/@712772904-96747
https://m.vk.com/@712772904-96748
https://m.vk.com/@712772904-96749
https://m.vk.com/@712772904-96750
https://m.vk.com/@712772904-96751
https://m.vk.com/@712772904-96752
https://m.vk.com/@712772904-96753
https://m.vk.com/@712772904-96754
https://m.vk.com/@712772904-96755
https://m.vk.com/@712772904-96756
https://m.vk.com/@712772904-96757
https://m.vk.com/@712772904-96758
https://m.vk.com/@712772904-96759
https://m.vk.com/@712772904-96760
https://m.vk.com/@712772904-96761
https://m.vk.com/@712772904-96762
https://m.vk.com/@712772904-96763
https://m.vk.com/@712772904-96764
https://m.vk.com/@712772904-96765
https://m.vk.com/@712772904-96766
https://m.vk.com/@712772904-96767
https://m.vk.com/@712772904-96768
https://m.vk.com/@712772904-96769
https://m.vk.com/@712772904-96770
https://m.vk.com/@712772904-96771
https://m.vk.com/@712772904-96772
https://m.vk.com/@712772904-96773
https://m.vk.com/@712772904-96774
https://m.vk.com/@712772904-96775
https://m.vk.com/@712772904-96776
https://m.vk.com/@712772904-96777
https://m.vk.com/@712772904-96778
https://m.vk.com/@712772904-96779
https://m.vk.com/@712772904-96780


0 回复 有任何疑惑可以回复我~

       是的,只能从request中读取(当然你若通过session或者其他来实现setAttribute方法的话,那就在相应的范围对象里面获取);因为jsp文件使用的变量与java文件使用的变量是不同的(你也可以通过自己的测试来说明的,如果去掉request.setAttribute()语句那么即使你取值的变量拼写与java代码中变量的拼写是一样的那也是取不到的)

这可以用一个比喻来说明一下(当然这是我的理解,仅供参考):A类要使用B类的变量,那么就要在A类中生成一个B类的实例,然后才能使用B的变量,我相信在这里的request.setAttribute()这个方法的执行过程也是包括一些对象的实例化和值的赋予的,因为这个语句本来就是为了能够方便我们写代码而封装而成的,至于它具体是如何实现的,以后再研究吧,现在能找到如何操作这个黑箱就行了。

1 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

这里的items待遍历集合只能从request中读取吗?不能从<%%>标签里定义的list直接读取吗?

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信