Re: html:radio non intialisation causing a problem
Do you keep your form in the request or session scope? Ricardo Gladwell [EMAIL PROTECTED] schrieb am 20.09.2004, 11:38:05: Hi All, The inability to set initial values for struts element is causing me some real issues. I have a view action that I use to redirect to a form with radio buttons, that itself will call a subsequent action to actually handle the business logic of the operation. The page relies upon dynamic, JavaScript updates - i.e. if you click on a radio button it updates the form by dynamically re-calling the view action. The problem is that there is no way to communicate with the form bean of the view action and the form bean of the business action. I can set properties in the request/session object and update the business form-bean using it's reset() method, as was recommended, but the reset() seems to be called only on the initial page load, and not after the Javascript refreshes. This would be simple if I could simple insert a initial value into the html:radio buttons, but there doesn't seem to be any easy solution to the problem. Kind regards, -- Ricardo Gladwell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Schaefer NAXOS Software Solutions GmbH i.G. Herrenstr. 1 69502 Hemsbach Germany Phone:+49 (0) 6201 49298-2 Mobile: +49 (0) 172 6269246 Fax: +49 (0) 6201 49298-1 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re[2]: German Umlaute
Since you see to experience your problem in request processing, may be set the encoding with the VM: -Dfile.encoding=ISO-8859-1 or UTF-8 if you like. Also the locale of your operating system might play a role. If its a UNIX/Linux box, do you have the german locale installed? Regards Martin Carl-Eric Menzel [EMAIL PROTECTED] schrieb am 17.09.2004, 09:38:30: Christoph Kutzinski wrote: ISO-8859-1 should be no problem since it contains all german umlauts. True. But I have standardized on UTF-8 for all text output in my applications, since I sometimes also have to deal with cyrillic stuff, and I don't want to adjust my encodings and the input filter all the time. Going directly to UTF-8 solves all that. Is there any good reason not to use UTF-8 by default? -- Carl-Eric Menzel * OpenPGP KeyID 808F4A8E * Encrypted Messages Preferred Der Beginn aller Wissenschaften ist das Erstaunen, daß die Dinge sind, wie sie sind. - Aristoteles -- Martin Schaefer NAXOS Software Solutions GmbH i.G. Herrenstr. 1 69502 Hemsbach Germany Phone:+49 (0) 6201 49298-2 Mobile: +49 (0) 172 6269246 Fax: +49 (0) 6201 49298-1 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Setting initial value on html:radio
On radio buttons http://www.jguru.com/faq/view.jsp?EID=1028442 has helped me. With the special problem you described. Can you set the value somewhere in the session and pick it up again in the second form's reset method? Maybe I didn't understand your problem entirely... Ricardo Gladwell [EMAIL PROTECTED] schrieb am 17.09.2004, 17:08:33: Hi All, I'm trying to set the initial value on a set of elements. Unlike other html tags, I notice there is no way to specify the initial value unless you specify the value in the form bean constructor/reset method itself. I am forwarding to a page containing and html:form with radio buttons from another action. The action form bean for the pre-action has a value I would like to pass onto the new form. How do I transfer this information from one form bean to another? It seems the only means of communication is the JSP itself and I don't really want to hack it with scriplets to copy the value from one form bean to another. Is there method of doing this? Kind regards, -- Ricardo Gladwell - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Martin Schaefer NAXOS Software Solutions GmbH i.G. Herrenstr. 1 69502 Hemsbach Germany Phone:+49 (0) 6201 49298-2 Mobile: +49 (0) 172 6269246 Fax: +49 (0) 6201 49298-1 Mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]