You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Dave Newton <ne...@pingsite.com> on 2005/08/03 21:24:40 UTC
Quick RequestProcessor question
I'm all short bus today; apologies in advance :/
I have a custom RequestProcessor that wants some initialization values.
If I use <property.../> I'm assuming I need JavaBean getter/setters (but
I don't event know if that's true). Is there (or can there easily be?) a
catch-all for properties defined like this without a getter/setter?
Is this something that reading the JavaBean stuff would tell me?
TIA,
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Quick RequestProcessor question
Posted by Joe Germuska <Jo...@Germuska.com>.
At 3:48 PM -0400 8/3/05, Dave Newton wrote:
>Dave Newton wrote:
>
>>I have a custom RequestProcessor that wants some initialization
>>values. If I use <property.../> I'm assuming I need JavaBean
>>getter/setters (but I don't event know if that's true). Is there
>>(or can there easily be?) a catch-all for properties defined like
>>this without a getter/setter?
>>
>>Is this something that reading the JavaBean stuff would tell me?
>
>No, but reading the Struts documentation might help me out :/
>
>Not general-purpose properties (dagnabbit) so I guess I'll have to
>shoot for a different config file to get what I need.
Struts 1.3 has introduced "general-purpose properties" to most of the
configuration objects, settable with a variation of <set-property>
<set-property key="foo" value="bar" />
see
http://svn.apache.org/viewcvs.cgi/struts/core/trunk/conf/share/struts-config_1_3.dtd?rev=169898&view=log
Sorry, no plans to back-port this to the Struts 1.2 line.
Joe
--
Joe Germuska
Joe@Germuska.com
http://blog.germuska.com
"Narrow minds are weapons made for mass destruction" -The Ex
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org
Re: Quick RequestProcessor question
Posted by Dave Newton <ne...@pingsite.com>.
Dave Newton wrote:
> I have a custom RequestProcessor that wants some initialization
> values. If I use <property.../> I'm assuming I need JavaBean
> getter/setters (but I don't event know if that's true). Is there (or
> can there easily be?) a catch-all for properties defined like this
> without a getter/setter?
>
> Is this something that reading the JavaBean stuff would tell me?
No, but reading the Struts documentation might help me out :/
Not general-purpose properties (dagnabbit) so I guess I'll have to shoot
for a different config file to get what I need.
Unless anybody has any other ideas.
Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org