If I want to configure Freemarker within Struts 2, how do I access the
FreemarkerManager instance? Ideally, I would do this one time on startup to
set global settings for my application.
I see there are some settings that can be configured via
freemarker.properties, but other options can not.
--
At: http://struts.apache.org/2.x/docs/url.html
it says url attribute "id" is deprecated in favor of "var". However, var
doesn't work and id does (Struts 2.0.9). I assume this is a documentation
error. Can I fix this somehow? Or I will just ignore.
--
View this message in context:
http://www.nab
I'm want to configure Freemarker to support direct property access without
requiring geetter methods.
Someone on the Freemarker list
http://www.nabble.com/FreeMarker-EL-And-Object-Member-Variables--tf4433530.html
said :
you have to tell your app to use BeansWrapper as opposed to the
> default
tried entries in web.xml but those didn't seem to do
anything.
I don't believe Struts supports a mechanism to specify a global default
other than text/html or to support XHTML MIME type for browsers that support
it but HTML for browsers that don't (IE).
Kenton wrote:
>
> With
With .jsp files, I can do:
<%@ page contentType="application/xhtml+xml;charset=ISO-8859-1" %>
With .jspx files, I can do:
What is the equivalent with FreeMarker (.FTL) templates?
Or for the ultimate, could I set a global MIME type for all freemarker/jsp
files of "application/xhtml+xml" for brow
I identified the issue and this isn't related to NULL references. To
summarize:
This syntax will work with a getter method OR directly with the raw member
variable if the getter method isn't present: <@s.property
value="myActionProperty.subProperty" />
This syntax requires a getter method and wo
How do I specify a contentType of "application/xhtml+xml" when I'm using
freemarker templates?
With .jspx files, I can do:
With .jsp files, I can do:
<%@ page contentType="application/xhtml+xml;charset=ISO-8859-1" %>
Or better yet, is there any way to configure the Struts servlet with a
global
I'm a newbie trying learn how to use FreeMarker for Struts result pages.
This code works: <@s.property value="myActionProperty.subProperty" />
This code triggers a FreeMarker error (expression undefined):
${myActionProperty.subProperty}
Obviously, I'm missing something very simple. But what is i
Thanks for the reply, Laurie! This suggestion of yours works perfectly!
(Although, I had to change var="url" to id="url")
${url}
Your other suggestion doesn't work. I'd like to know why this doesn't work,
as this was what I first tried (I mentioned this in my original post, b
I have a .jspx file in my Struts 2.0.x app.
This doesn't work:
I get this error (both editor and at runtime): The value of attribute "src"
associated with an element type "null" must not contain the '<' character.
(The above should regular non-escaped HTML, in case the
Old thread... However, I believe I'm doing exactly what you are saying:
Struts 2.0.x + XHTML + .jspx file with a embedded inside a
element. This is working perfectly. No errors in my editor (NetBeans 5.5.1)
or in the runtime (Glassfish v2). Here is a simple example:
http://ja
ave to
> carry it around. As for using other libraries, you just need to stay away
> from the ajax theme, and include the javascript files in your app. Some
> work is going on the YUI plugin, but there are only 2 tags, and it is
> quite
> new :)
>
> http://cwiki.apache.org/S2PL
Of course, I am using the embedded version of Dojo that is served by the
Struts servlet. I didn't modify that.
I was using Dojo downloads in a separate experiment, where I was trying to
get Dojo to work with some static web pages, so that I could understand the
Dojo library and debug the issue.
Struts: 2.0.8
Browser: Firefox 2.0.0.4
App Server: Glassfish v2 beta 2
OS: Windows XP SP2
I'm trying to add some simple AJAX functionality to my Struts 2 application.
I've copy/pasted a few snippets from the Struts 2 documentation. I've tried
several variations on this:
I'm preparing my Struts app for Internationalization and am moving all
strings to .properties files.
How do I do this:
"/>
Obviously, that doesn't work, but you can probably see what I want to do.
How do I do that?
--
View this message in context:
http://www.nabble.com/-S1--Properties-Argumen
Wow, thanks! My apologies, I should have figured that out before posting. But
it works great! Thanks! Nabble is great as well. I couldn't be happier.
Wendy Smoak-3 wrote:
>
> No, that's XWork 2 code, right where it should be.
>
Wendy Smoak-3 wrote:
>
> That's easy... Nabble! Here's the use
16 matches
Mail list logo