Re: can i call a java class in jstl?

2004-08-11 Thread Helios Alonso
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

Re: can i call a java class in jstl?

2004-08-10 Thread ?fffffffffb8?fffffffffdf ?fffffffffb5?fffffffffc f?=
--- 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.

Re: can i call a java class in jstl?

2004-08-09 Thread Helios Alonso
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

Re: can i call a java class in jstl?

2004-08-09 Thread ?fffffffffb8?fffffffffdf ?fffffffffb5?fffffffffc f?=
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

Re: can i call a java class in jstl?

2004-08-06 Thread michael
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

Re: can i call a java class in jstl?

2004-08-06 Thread Steve Lewis
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

Re: can i call a java class in jstl?

2004-08-06 Thread Helios Alonso
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()

RE: can i call a java class in jstl?

2004-08-06 Thread Karl Coleman
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

Re: can i call a java class in jstl?

2004-08-06 Thread Don Albertson
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

Re: can i call a java class in jstl?

2004-08-06 Thread Thai DANG
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

can i call a java class in jstl?

2004-08-05 Thread ?fffffffffb8?fffffffffdf ?fffffffffb5?fffffffffc f?=
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