snip
Non-String Form bean properties are evil though, you'll thank yourself later
if you use Strings
/snip
+1
-Original Message-
From: Michael Ruppin [mailto:[EMAIL PROTECTED]
Sent: Saturday, 13 September 2003 04:14
To: Struts Users Mailing List
Subject: RE: Easy Question
Non-String
Hi, is it possible to retrieve a ModuleConfig object (with the module
configuration information) directly from within an Action without any
backwork?
Marco
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
OK, I see. So the only problem that will arise then would be if I have
or in my error messages then.
I guess I can live with that.
Thanks David,
Adam
On 09/12/2003 08:37 PM David Graham wrote:
Use html:javascript cdata=false/ to disable the CDATA printing.
Current browsers are broken in
Hi Denis,
have you got EL working at all at any point, or is it just this page? I
can't say I've seen that error before but it looks like a configuration
problem.
By the way, why are you populating your formfields this way, and not
letting struts take care of it for you? Are you deliberately
Look at the Javadoc for o.a.s.Globals.MODULE_KEY
With it you can get the current module from the request, or append the
module prefix (name) to look up any module in the ServletContext.
Steve
-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]
Sent: September 13, 2003
Thanks David. This was the only workaround I could think of as well.
Yet it doesn't make sense to me - why are all the non-Collection fields
on the form maintained (i.e. upon returning the input page text fields,
etc. are all populated with previous values), but the Collections are not?
Anyone
I use:
mapping.getModuleConfig();
... but understand this only returns the ModuleConfig info for the current
module.
Hue.
-Original Message-
From: Marco Tedone [mailto:[EMAIL PROTECTED]
Sent: 13 September 2003 10:28
To: Struts-user-list
Subject: Retrieving the ModuleConfig
denis == denis [EMAIL PROTECTED] writes:
denis So this is my JSP code:
denis html:form action=/registerUser.do ...
denis c:if test=${registerUserForm.properties[prop.key].type == 'boolean'}
denis html-el:checkbox property=${property(prop.key)}/
denis /c:if...
denis
--- Joe @ Team345 [EMAIL PROTECTED] wrote:
Thanks David. This was the only workaround I could think of as well.
Yet it doesn't make sense to me - why are all the non-Collection fields
on the form maintained (i.e. upon returning the input page text fields,
etc. are all populated with
One work around that doesn't require you to place your Collection in the
session is to make the input attribute value of your action element equal
to your setup action for the page.
Another thing to think about is if your Collections are composed of static
data,
place them in the ServletContext
Hi, I can see that for each action, is possible to define some properties
via the property element. Now, I cannot see any method in the ActionConfig
file which returns those properties. Is there anything I'm missing?
Marco
-
DynaForms aren't as dynamic as there name suggest, at least not until
you start using indexed properties.If the case of forms you'll still be
wanting to use struts html tags, as jstl doesn't cover this yet until
java servers faces is released.
For most cases nesting beans works
//in struts
That's it - I was looking at it from the wrong perspective and could
make sense of it.
Thanks!
Joe
David Graham wrote:
--- Joe @ Team345 [EMAIL PROTECTED] wrote:
Thanks David. This was the only workaround I could think of as well.
Yet it doesn't make sense to me - why are all the
Hi.
I can't make org.apache.struts.scaffold.RemoveAttributeAction works.
this is my action config,
action path=/logoff
parameter=clientData
type=org.apache.struts.scaffold.RemoveAttributeAction
forward name=success
path=/login.vm
redirect=false/
hi fellow programmers
im trying to call a struts action via http in a java program.
Something like URL (Action to call)
http://localhost:8443/printHelloWorld.do
this returns a blank page with the text Hello World
I want to read this input from a java program using something like
URL u =
I haven't actually used it, but the Commons HttpClient
(http://jakarta.apache.org/commons/httpclient/index.html) might of
interest to you.
Steve
-Original Message-
From: Henry Voyer [mailto:[EMAIL PROTECTED]
Sent: September 13, 2003 8:50 PM
To: [EMAIL PROTECTED]
Subject: Q : Calling
16 matches
Mail list logo