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 <[EMAIL PROTECTED]> 的正文:
> 
> 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)
> >>>?fffffffffb8?fffffffffdf
> ?fffffffffb5?fffffffffc f?= 
> >>><[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> >>>>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>>
>
>>>---------------------------------------------------------------------
> >>>To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >>
> >>
>
>>---------------------------------------------------------------------
> >>To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >>For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
>  

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to