tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From =?gb2312?q?=FFffffffffffb8=FFffffffffffdf=20=FFffffffffffb5=FFffffffffffc?= f?= <jaoy...@yahoo.com.cn>
Subject Re: can i use jstl replace struts bean tags?
Date Wed, 04 Aug 2004 01:01:31 GMT
 --- Bill Siggelkow <billsigg@bellsouth.net> 的正文:
> The JSTL can easily replace many of the Struts tags.
>  The <c:out> tag is
> equivalent to <bean:write>. To iterate you can use
> the <c:forEach> tag
> instead of the Struts <logic:iterate>
> 
> Keep in mind that you still use Struts to provide
> the controller and you
> will continue to use the Struts html tags for form
> creation.
> 
> ?ffffffffffb8?ffffffffffdf
> ?ffffffffffb5?ffffffffffc f?= wrote:
> > i am developping a project based on struts,and i
> also
> > want to use jstl1.1 in the jsp page.in my action
> > class,i have return a Iteratorobject like this:
> > Iterator iter = service.getLogs(querySentence,
> page);
> > request.setAttribute("logs", iter);
> > but i don't know how to get it in jstl,while in
> struts
> > u can use <bean:write> tag,so i wonder if it is
> > possible in jstl1.1?
> > 
> >
>
_________________________________________________________
> > Do You Yahoo!?
> > 美女明星应有尽有,"一搜"搜遍美图、艳图和酷图
> > http://image.yisou.com
> >  
> > 100兆邮箱够不够用?雅虎电邮自助扩容!
> >
>
http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> taglibs-user-help@jakarta.apache.org
> 
>  

thank your reply,can u tell me how to use <forEach>
tag to get the request.setAttribute("logs", iter)
values which i set in the action.
cause in jsp script,i can use
<%request.getAttribute()%>,but in jstl,i don't know
how to do :(

_________________________________________________________
Do You Yahoo!?
美女明星应有尽有,"一搜"搜遍美图、艳图和酷图
http://image.yisou.com
 
100兆邮箱够不够用?雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/100m/*http://cn.promo.yahoo.com/minisite/100m/

---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message