Sorry, myMethod only executes if it's some bean property accesor, otherwise
it's an error (EL is for bean evaluation, only, at least in a ). So
the bean constructor approach is the working one.
At 10:27 11/08/2004 +0800, you wrote:
--- Helios Alonso <[EMAIL PROTECTED]> µÄÕýÎÄ£º
> In the first
--- Helios Alonso <[EMAIL PROTECTED]> 的正文:
> In the first case, the code must be in "myMethod",
> in the second the code
> must be in the constructor (or in a static block
> inside the class ;-) but
> constructor would be nicer)
>
> At 15:32 09/08/2004 +0800, you wrote:
> >if i use ${myUseBean.
In the first case, the code must be in "myMethod", in the second the code
must be in the constructor (or in a static block inside the class ;-) but
constructor would be nicer)
At 15:32 09/08/2004 +0800, you wrote:
if i use ${myUseBean.myMethod} or
,is the code in class will
execute automaticly w
if i use ${myUseBean.myMethod} or
,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 fun
At 06:46 AM 8/6/2004, you wrote:
i use
jstl to call this class in the jsp page and execute
the code automaticly?
Just make your own tag.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
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 creatio
Or make a bean that calls the code on its creation and
At 08:05 06/08/2004 -0400, you wrote:
Another option is to put the code into a servlet and use
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()
I believe in JSTL 1.1 you can have user defined functions in a functions.tld. But I
haven't tried it out myself so I don't know what limitations there may be. Someone
else may be able to enlighten us more on the subject.
Karl
> in fact i want to execute some java code automaticly
> when i open
Another option is to put the code into a servlet and use
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 (CS
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)
ÿffb8ÿffdf ÿffb5ÿffc f?= <[EMAIL PROTE
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
11 matches
Mail list logo