Re: Handling wildcard action names with dot.

2011-03-01 Thread Fred Toth
Coincidentally, I've been working on this same issue. I needed struts actions to handle PDFs. My solution was to add pdf to the action extensions, as in: Note the critical trailing comma which allows for blank extensions in addition to pdf. I'm not sure exactly how struts, by default, knows

Can I access current freemarker configuration from an action?

2010-06-02 Thread Fred Toth
Hi, We use freemarker results. I'd also like to use freemarker templates to build an email message. Can I access the current freemarker configuration object inside my action? I've seen examples of how to create a NEW configuration object, but that's not as good. In particular, I'd like to stor

select tag in freemarker

2007-07-09 Thread Fred Toth
are a few variations that DON'T work: list="#{'01':'Jan', '02':'Feb'}" - same as above list="%{#{'01':'Jan', '02':'Feb'}}" - force OGNL? list="{'01':'Jan', '02'

Re: How do I make a checkbox initially checked?

2007-07-08 Thread Fred Toth
----- From: "Fred Toth" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, July 07, 2007 9:11 PM Subject: How do I make a checkbox initially checked? Hi again, I'm working on a form where a particular checkbox should be initially checked when the for

How do I make a checkbox initially checked?

2007-07-07 Thread Fred Toth
Hi again, I'm working on a form where a particular checkbox should be initially checked when the form first comes up. None of the options in s:checkbox seem to support this. I tried to have my backing object initialized with the particular Boolean set to true, but struts doesn't seem to actual

Re: Can freemarker use OGNL null value handling?

2007-07-07 Thread Fred Toth
Thanks. That was it! I must have been through the doc a dozen times, but I missed the '$' vs '%' issue. Thanks again. Fred Dale Newfield wrote: Fred Toth wrote: To be more specific: In jsp, you can do this: This works even when user doesn't exist because of the

Can freemarker use OGNL null value handling?

2007-07-07 Thread Fred Toth
firstName}"/> We get an exception "user is undefined". This is presumably because the freemarker expression language is being used, and not OGNL? So I'm amazed that I have not been able to find a single mention of this very important issue! Am I miss