2 mollyshap MollyShap 于 2016.04.21 10:32 提问

使用SSH框架,action向jsp 传值,如何把值传进区,并且还是在固定区域

后台传值传过来都是空的,并且值还不在固定区域
select
top 12 tkfnews0_.id as id0_,
tkfnews0_.TokenId as TokenId0_,
tkfnews0_.newsid as newsid0_,
tkfnews0_.parentid as parentid0_,
tkfnews0_.childcount as childcount0_,
tkfnews0_.title as title0_,
tkfnews0_.titlePicUrl as titlePic7_0_,
tkfnews0_.subject as subject0_,
tkfnews0_.keywords as keywords0_,
tkfnews0_.SiteTitles as SiteTitles0_,
tkfnews0_.AreaCodeIds as AreaCod11_0_,
tkfnews0_.AreaTitles as AreaTitles0_,
tkfnews0_.author as author0_,
tkfnews0_.editor as editor0_,
tkfnews0_.source as source0_,
tkfnews0_.content as content0_,
tkfnews0_.content_format as content17_0_,
tkfnews0_.content_date as content18_0_,
tkfnews0_.classid as classid0_,
tkfnews0_.cometype as cometype0_,
tkfnews0_.allhits as allhits0_,
tkfnews0_.goodscores as goodscores0_,
tkfnews0_.badscores as badscores0_,
tkfnews0_.comeurl as comeurl0_,
tkfnews0_.IsOriginal as IsOriginal0_,
tkfnews0_.isTop as isTop0_,
tkfnews0_.isIndex as isIndex0_,
tkfnews0_.isHao as isHao0_,
tkfnews0_.status as status0_,
tkfnews0_.userid as userid0_,
tkfnews0_.TitleColor as TitleColor0_,
tkfnews0_.memid as memid0_,
tkfnews0_.deleted as deleted0_,
tkfnews0_.createtime as createtime0_,
tkfnews0_.updatetime as updatetime0_,
tkfnews0_.LinkUrl as LinkUrl0_,
tkfnews0_.LinkType as LinkType0_,
tkfnews0_.TitleShort as TitleShort0_,
tkfnews0_.picnum as picnum0_,
tkfnews0_.orders as orders0_,
tkfnews0_.SeoDomain as SeoDomain0_,
tkfnews0_.SeoTitle as SeoTitle0_,
tkfnews0_.MetaKeyWord as MetaKey43_0_,
tkfnews0_.MetaDescription as MetaDes44_0_,
tkfnews0_.BrandIds as BrandIds0_,
tkfnews0_.Summary as Summary0_,
tkfnews0_.CaijiId as CaijiId0_,
tkfnews0_.HostConfigId as HostCon48_0_,
tkfnews0_.AppID as AppID0_,
tkfnews0_.PicUrl as PicUrl0_,
tkfnews0_.Reader as Reader0_,
tkfnews0_.Favorite as Favorite0_
from
db_vlaibao_cms.dbo.tkf_News tkfnews0_
[null, null, null, null, null, null]

3个回答

MOONCOM
MOONCOM   2016.04.21 10:34

..1111111111111111111

MollyShap
MollyShap 额,那是控制台的显示,请问有什么方法可以实现?
一年多之前 回复
w172087242
w172087242   Ds   Rxr 2016.04.21 11:15
可以用request或session的setAttribute方法,将你的list放进去,然后在jsp用标准标签库、struts标签库、spring标签库、java代码进行循环读取放置
MollyShap
MollyShap 谢谢
一年多之前 回复
lovebosom
lovebosom   2016.04.21 13:49

request.setAttribute(“list”,list)就可以啊,不知道你说的不在固定区域是什么意思 ....
jsp中就可以得到list 再用struts标签库 遍历就行。。

MollyShap
MollyShap 恩恩,谢谢
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!