tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Albertson <dalbert...@pennswoods.net>
Subject Re: can i call a java class in jstl?
Date Fri, 06 Aug 2004 12:05:33 GMT
Another option is to put the code into a servlet and use
<jsp:include page="whatever_the_servlet_URL_is"/>




Thai DANG wrote:
> Hi
> 
> This is my suggestion : you put all your code in a method of your bean MyUseBean.java
(for example public void getMyMethod() {})
> Then, simply put in your JSP : ${myUseBean.myMethod}
> 
> 
> On Fri, 6 Aug 2004 14:30:10 +0800 (CST)
> ÿffffffffffb8ÿffffffffffdf ÿffffffffffb5ÿffffffffffc f?= <jaoyina@yahoo.com.cn>
wrote:
> 
> 
>>in fact i want to execute some java code automaticly
>>when i open the jsp page.but i don't want to write the
>>code in the jsp and i wrap it in a class,can i use
>>jstl to call this class in the jsp page and execute
>>the code automaticly?
>>
>>_________________________________________________________
>>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
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
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