Formatting strings in Struts2/Freemarker

2007-11-09 Thread Scott Kingdon
I am very used to using JSP taglibs and el functions for formatting text. In my current application I am using Struts2 with Freemarker as the templating engine. I need to format a phone number that is pulled from the database as 88 to be (888)888-. Using el functions you can just call a

Re: Display tags within one line

2007-11-09 Thread Scott Kingdon
Use . This will allow you to have 100% control over the form html. Notice that by dong this you will have to handle all the formatting of the table by yourself. -Scott On Nov 9, 2007 3:48 PM, Emi Lu <[EMAIL PROTECTED]> wrote: > Hello, > > May

Re: Formatting strings in Struts2/Freemarker

2007-11-09 Thread Scott Kingdon
d use the same > syntax to call static methods you can from JSP, does > that not work? > > (AFAIK you can also expose the JSTL library to a > FreeMarker page but I'm not sure how the two ELs would > play together; w/ OGNL you can use the %{...} EL > escape.) > > d. &

Re: Formatting strings in Struts2/Freemarker

2007-11-09 Thread Scott Kingdon
Thank you for that. That was a huge step in the right direction. However, that does not work. freemarker.core.InvalidReferenceException: on line 4, column 146 in template/xhtml/components/loginlink.ftl unitag.phone not found. I found a snipped over on Freemarker's forum that says Freemarker does

Re: Formatting strings in Struts2/Freemarker

2007-11-12 Thread Scott Kingdon
se a struts2 tag with OGNL? If I am understanding > correctly, you could use - > > @s.property value="@[EMAIL PROTECTED]('OGNL.pathTo.variable') > > Of course, I don't know freemarker, and this is assuming you can reach > the variable from OGNL. > > -W > > &

Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
I am using Struts 2. I get this error whenever I turn on validation. The struts automatically returns the input page. 07:42:11,349 INFO [STDOUT] 07:42:11,349 ERROR [ParametersInterceptor] ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'name' with

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
alse > > I believe this is a change from 2.0.6 ( and in some regards, a worse one > at that ). > > I'm still investigating it, but please try turning devMode off and seeing > if it helps. > > > > Scott Kingdon wrote: >> >> I am using Struts 2. I get

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
dressIndex(Integer addressIndex) { this.addressIndex = addressIndex; } } As much as I like Struts 2, I am having a hard time debugging why some interceptors fail. There is no error message. Nothing. It just returns the input page. == On 7/3/07, Sco

Re: Validation dies because of request param array?

2007-07-03 Thread Scott Kingdon
n class be set to "com.ourcompany.struts.action.profile.ProfileAddress"? Aside from that, can you share the editProfile.jsp file? - Patrick. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Kingdon Sent: Tuesday, July 03, 2007 3:15 PM To: Str