RE: Easy Question

2003-09-13 Thread Andrew Hill
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

Retrieving the ModuleConfig object

2003-09-13 Thread Marco Tedone
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,

Re: xhtml, html:javascript tag ![cdata]

2003-09-13 Thread Adam Hardy
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

Re: EL Question

2003-09-13 Thread Adam Hardy
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

RE: Retrieving the ModuleConfig object

2003-09-13 Thread Steve Raeburn
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

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
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

RE: Retrieving the ModuleConfig object

2003-09-13 Thread Hue Holleran
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

Re: EL Question

2003-09-13 Thread David M. Karr
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

Re: Validator, DynaForms, and Collections

2003-09-13 Thread David Graham
--- 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

RE: Validator, DynaForms, and Collections

2003-09-13 Thread Robert Taylor
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

Question about properties in the struts configuration file

2003-09-13 Thread Marco Tedone
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 -

Re: Really Dynamic Forms

2003-09-13 Thread Mark Lowe
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

Re: Validator, DynaForms, and Collections

2003-09-13 Thread Joe @ Team345
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

RemoveAttributeAction always failure

2003-09-13 Thread Lázaro Miguel Fung
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/

Q : Calling an action via a java URL ?

2003-09-13 Thread Henry Voyer
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 =

RE: Q : Calling an action via a java URL ?

2003-09-13 Thread Steve Raeburn
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