You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Wendy Smoak <ws...@gmail.com> on 2008/09/16 16:32:25 UTC

struts.properties file in the 2.0.x starter archetype

On Tue, Sep 16, 2008 at 7:23 AM, Dave Newton <ne...@yahoo.com> wrote:
> --- On Fri, 9/12/08, Wendy Smoak wrote:
>> (Dave, if you'd like to make that change on the branch, it can go
>> into the next release.  Is it relevant on trunk, where the archetype
>> needs to be fixed to work with Struts 2.1?)
>
> It's not clear to me where the tutorial/src/main/resources/struts.properties file is coming from;
> I'm assuming magic.
>
> The archetype-starter has a struts-properties, but it's different. Is this archetype somewhere else other than in the S2 maven repo?

Different from what?  I'm not sure what you're comparing.

The one in the 2.0.x starter archetype is here:
http://svn.apache.org/repos/asf/struts/maven/branches/ARCHETYPES_2_0_X/struts2-archetype-starter/src/main/resources/archetype-resources/src/main/resources/

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: struts.properties file in the 2.0.x starter archetype

Posted by Dave Newton <ne...@yahoo.com>.
--- On Tue, 9/16/08, Wendy Smoak wrote:
> I blame Velocity. :)

Oh, duh, right... forgot about that.

I was hoping there'd be yet something else I had to keep in mind; things aren't complicated enough :p

I'll probably move most/all the constants into the struts.xml and add a comment saying that some/most are the defaults or something once I check to see if any are different than the defaults.

(It'd be nice if there was something that showed up in the logs if something was being changed from the default, although maybe there is already--I'll look at that.)

Thanks,
Dave "Does anybody else hear that tiny violin?" Newton


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: struts.properties file in the 2.0.x starter archetype

Posted by Wendy Smoak <ws...@gmail.com>.
On Tue, Sep 16, 2008 at 7:37 AM, Dave Newton <ne...@yahoo.com> wrote:

> When I ran the archetype it created a "tutorial" directory. The src/main/resources/struts.properties file (appended) didn't have all the comments/etc. in the struts.properties from starter-archetype.
>
> It's (disturbingly) possible I thoroughly hosed something up and I'm talking about something else entirely, though--if so, never mind.

Interesting.  The ### comments are there in svn and in the file inside
the jar in the repository... but they get stripped out when you create
a project from the archetype.  I blame Velocity. :)

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: struts.properties file in the 2.0.x starter archetype

Posted by Dave Newton <ne...@yahoo.com>.
--- On Tue, 9/16/08, Wendy Smoak wrote:
> Different from what?  I'm not sure what you're comparing.

(ObCaveat: when I did this I had been up for two days, so...)

When I ran the archetype it created a "tutorial" directory. The src/main/resources/struts.properties file (appended) didn't have all the comments/etc. in the struts.properties from starter-archetype.

It's (disturbingly) possible I thoroughly hosed something up and I'm talking about something else entirely, though--if so, never mind.

Dave

== Appended tutorial/src/main/resources/struts.properties ==

# struts.configuration=org.apache.struts2.config.DefaultConfiguration

# struts.locale=en_US
struts.i18n.encoding=UTF-8

struts.objectFactory = spring

struts.objectFactory.spring.autoWire = name

struts.objectFactory.spring.useClassCache = true

#struts.objectTypeDeterminer = tiger
#struts.objectTypeDeterminer = notiger

# struts.multipart.parser=cos
# struts.multipart.parser=pell
struts.multipart.parser=jakarta
# uses javax.servlet.context.tempdir by default
struts.multipart.saveDir=
struts.multipart.maxSize=2097152

# struts.custom.properties=application,com/webwork/extension/custom

struts.mapper.class=org.apache.struts2.dispatcher.mapper.DefaultActionMapper

struts.action.extension=action

struts.serve.static=true

struts.serve.static.browserCache=true

struts.tag.altSyntax=true

struts.devMode = false

struts.i18n.reload=false

struts.ui.theme=xhtml
struts.ui.templateDir=template
#sets the default template type. Either ftl, vm, or jsp
struts.ui.templateSuffix=ftl

struts.configuration.xml.reload=false

# struts.velocity.configfile = velocity.properties

# struts.velocity.contexts =

struts.url.http.port = 80
struts.url.https.port = 443

# struts.custom.i18n.resources=testmessages,testmessages2
struts.custom.i18n.resources=globalmessages

struts.dispatcher.parametersWorkaround = false

#struts.freemarker.manager.classname=org.apache.struts2.views.freemarker.FreemarkerManager

struts.freemarker.wrapper.altMap=true

struts.xslt.nocache=false


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org