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 call a java class in jstl?
Date Mon, 09 Aug 2004 07:32:24 GMT
if i use ${myUseBean.myMethod} or 
<jsp:useBean id="aux" scope="page"
class="MyCallingBean" />,is the code in class will
execute automaticly when i open the page?

 --- Steve Lewis <smlewis@lordjoe.com> ģ
> 
> I thing the modern approach is a custom tag -
> Custum functions are OK but are restricted to static
> methods. It is not 
> easy to give these functions access to the page
> context. Custom tags have 
> access to  this data.
> 
> At 05:29 AM 8/6/2004, you wrote:
> 
> >Or make a bean that calls the code on its creation
> and
> ><jsp:useBean id="aux" scope="page"
> class="MyCallingBean" />
> >
> >At 08:05 06/08/2004 -0400, you wrote:
> >>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)
> >>>ffffffffffb8ffffffffffdf
> ffffffffffb5ffffffffffc 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
> >
> >
> >
>
>---------------------------------------------------------------------
> >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
> 
>  

_________________________________________________________
Do You Yahoo!?
150MP3ѣֵ
http://music.yisou.com/
ŮӦоУѱͼͼͿͼ
http://image.yisou.com
1G1000ףŻݣ
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

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