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)
ÿffffffffffb8ÿffffffffffdf ÿffffffffffb5ÿffffffffffc 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]



Reply via email to