Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Durham

Kalcevich, Daniel wrote:

Everyone,

Does anyone know of a tool or library that can be used to perform
similar operations as JSTL does with arguments like ${object.method}?  I
need to build a String that has to have arguments replaced on the fly
and thought if I could find something like how JSTL does it, that it
would work for me.  Thanks in advance.


Commons-EL, right?

http://jakarta.apache.org/commons/el/


-Dave

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



Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Durham

Kalcevich, Daniel wrote:

Dang, I must have been spacing when I was looking on the Jakarta Site
earlier.  Thanks Dave.


I wasn't sure if that's what you needed or not.  Good to hear that it is.

-Dave

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



RE: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Kalcevich, Daniel
Well, I briefly looked at it.  It might not be what I am looking for if
I cannot use it within my Actions, and not just on the JSP.  Like I
said, I haven't look at it too much yet though.

Daniel

-Original Message-
From: David Durham [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 11, 2006 1:41 PM
To: Struts Users Mailing List
Subject: Re: [OT] - JSTL Parameter Conventions

Kalcevich, Daniel wrote:
 Dang, I must have been spacing when I was looking on the Jakarta Site
 earlier.  Thanks Dave.

I wasn't sure if that's what you needed or not.  Good to hear that it
is.

-Dave

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



Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread Craig McClanahan

On 5/11/06, Kalcevich, Daniel [EMAIL PROTECTED] wrote:


Well, I briefly looked at it.  It might not be what I am looking for if
I cannot use it within my Actions, and not just on the JSP.  Like I
said, I haven't look at it too much yet though.



If you are using JSF 1.1 today, you can execute value binding and method
binding expressions programmatically.  Code might look something like this:

   FacesContext context = FacesContext.getCurrentInstance();
   ValueBinding vb = context.getApplication().createValueBinding(Hello #{
customer.name} !!!);
   String result = (String) vb.getValue(context);

In a Java EE 5 setting (which includes JSP 2.1 and JSF 1.2), the expression
language stuff has been migrated out to a separate package that can be
invoked programatically using similar APIs in the javax.el package
namespace, even if you're not using JSF.

Daniel


Craig


Re: [OT] - JSTL Parameter Conventions

2006-05-11 Thread David Evans
Check out Velocity and Freemarker, both are templating systems that are
not tied to jsp.
http://jakarta.apache.org/velocity/
http://freemarker.sourceforge.net/

I use velocity to do all of the email body templating in my
applications, it works great.

Dave


On Thu, 2006-05-11 at 12:43 -0700, Kalcevich, Daniel wrote:
 Everyone,
 
  
 
 Does anyone know of a tool or library that can be used to perform
 similar operations as JSTL does with arguments like ${object.method}?  I
 need to build a String that has to have arguments replaced on the fly
 and thought if I could find something like how JSTL does it, that it
 would work for me.  Thanks in advance.
 
  
 
 Daniel
 


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