RE: passing object in request from jsp to action

2005-03-31 Thread Nidel, Mike
Due to the nature of HTTP, you cannot pass an object from the client's browser to the Action. Instead you either need to a. pass the form fields/request parameters you need to build your object again or b. store the Object in the session so you can retrieve it when the Action is called. I

RE: DynaValidatorForm and Checkbox

2005-03-30 Thread Nidel, Mike
Having never used DynaValidatorForm before, I'm not 100% sure what the means for accessing the properties would be. It's clear that getCatalogID() is not going to be defined on DynaValidatorForm as an available method. So I'd try calling getDynaProperty() and if that doesn't work you should

RE: bean in a Actionform

2005-03-30 Thread Nidel, Mike
Hello Temp, It seems like you want to use a combination of the nested bean property naming and list-backed properties. I think your property name in the form element will be something like mybean.prop which will result in form.getMybean().setProp() when the form is submitted. I believe your

RE: DynaValidationForm Display In JSP?

2005-03-30 Thread Nidel, Mike
Wow. I'm stumped. As I said, I don't have firsthand experience with DynaForms... Only thing I can think of is, did you set the input to your JSP correctly in the struts-config? Not to sound overly optimistic, but it's GOT to work. It uses the same functionality on the sending as it does when

RE: MessageResources in ActionForm

2005-03-28 Thread Nidel, Mike
You might want to check Globals.MESSAGES_KEY although this isn't how I understood the MessageResources to work, I thought the ActionMessages was stored in the request under the Global.MESSAGES_KEY and not the MessageResources... anybody else? -Original Message- From: Scott Purcell

RE: Place message in jsp from action?

2005-03-23 Thread Nidel, Mike
Just having learned this last week, it's fresh in my mind. Looks like you are missing the call to this.saveErrors(errors); this puts the ActionErrors into the request for your JSP to display. The other thing I'd say is that ActionErrors is deprecated; you might use ActionMessages instead,

RE: Displaying a HashMap as a select

2005-03-08 Thread Nidel, Mike
Note that there's also the java.util.LinkedHashMap which will maintain whichever order you insert the values in. This gives you the consistency of TreeMap without the overhead of resorting, if your data is already sorted when you're populating the Map. It also has a funky LRU-style option that

RE: map-backed forms with multibox/multiselect lists?

2005-03-08 Thread Nidel, Mike
The good news is that this DOES work. I simply declared my methods to be public void setFoo(String key, String[] foos) { ... } public String[] getFoo(String key) { ... } and everything works fine. It took a detour through the Struts source (and ultimately from there through the beanutils

RE: struts html tags and form-beans

2005-03-08 Thread Nidel, Mike
No. This won't work automatically. You can, however, use the bean:write... tags or use scriptlet code to access your form bean in the request/session and pull the properties out that you need. -Original Message- From: wo_shi_ni_ba_ba [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 08,

RE: map-backed forms with multibox/multiselect lists?

2005-03-07 Thread Nidel, Mike
This works fine for list-backed form items (which we also use) but in this case I need something like public void setFoos(String key, String[] foos) is this possible? There are several workarounds I can think of, but this appears to be the cleanest solution if I can make it work. Mike