Radio button default checked with Indexed properties

2008-11-14 Thread danipruebas
Hi, How can I get a radio button checked by default using indexed properties? I read in forums to do it in the reset method of the ActionForm, but dont know exactly how to do it... In my jsp I render X radio buttons, where X is the number of questions saved in the request Bean choices in My

Re: Dynamic radio buttons with bean

2008-09-11 Thread danipruebas
Hi I am still (fighting) trying to display a radio button dynamically reading data from a DB, but I get this error: javax.servlet.ServletException: No getter method available for property control for bean under name org.apache.struts.taglib.html.BEAN This is the route, code attached below: 1-

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Sorry but i dont understand what you mean, that´s what I am trying to do, get the data, send it though a request bean to the jsp, and display the info as a radio button. As far as i know, is not as easy as 123 (or I think), that´s why I am looking for any better or easier ideas for indexed

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Thanks Martin, Is this applicable to Struts 1.x? Regards - Original Message - From: Martin Gainty To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 5:12 PM Subject: RE: Dynamic radio buttons with bean http://struts.apache.org/2.x/docs/radio.html

Re: Dynamic radio buttons with bean

2008-09-10 Thread danipruebas
Hi, There is nothing wrong : ) I just wanted to know if there was another method to deal with this. Thanks for the reply. Regards, - Original Message - From: Dave Newton To: Struts Users Mailing List Sent: Wednesday, September 10, 2008 6:18 PM Subject: Re: Dynamic radio

Submit button with no form

2008-09-05 Thread danipruebas
Hi, How can I render a button in a jsp page to call an action directly with no form? I just want to call an action from a button in a jsp page, no links. I will use Dispatch_Action so how should I name it in the strus-config file? I understand Dispatch Action theory ;) Any ideas would be

Error global-Forwards

2008-07-18 Thread danipruebas
Hi, i have a problem, let me explain. I have one globalforward as a html:link defined in a jsp page, after clicking it, it should execute the corresponding action class and display the results in another jsp page. Page1Link (global forward to *.do -- not to .jsp) --calls actionClass.java --

Re: Validator plugin error

2008-07-15 Thread danipruebas
Hi again, After updating all the dependencies and changing the DTD for the validation.xml and validation-rules.xml: !DOCTYPE form-validation PUBLIC -//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.3.0//EN http://jakarta.apache.org/commons/dtds/validator_1_3_0.dtd;; I

Re: Validator plugin error

2008-07-15 Thread danipruebas
OMG, this is an EPIC FAIL : ) Yes, i have saved and referenced it in WEB-INF. Best regards, - Original Message - From: Lukasz Lenart [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, July 15, 2008 7:23 PM Subject: Re: Validator plugin error As I

message resources ???key??? displaying

2008-07-14 Thread danipruebas
Hi, I´m developing a project with Struts 1.2. When trying to display html:errors in a jsp page, the errors saved in SaveMessages are displayed, but not correctly, for example: in showerrors.jsp: ???es.error.wrong.password??? instead of: Your password is wrong. The

Re: message resources ???key??? displaying

2008-07-14 Thread danipruebas
It is configured as: struts-config.xml message-resources parameter=ApplicationResources null=false / In web.xml is not defined. The ApplicationResources.properties file is under: proyect_name/Webroot/WEB-INF/lib/ApplicationResources.properties And the jsp code: logic:messagesPresent

Re: message resources ???key??? displaying

2008-07-14 Thread danipruebas
Hi, That was the correct path, I didn´t know about it. Thank you for your answers, guys. ;-) - Original Message - From: Lukasz Lenart [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Monday, July 14, 2008 8:22 PM Subject: Re: message resources ???key???

Validator plugin error

2008-07-14 Thread danipruebas
Hi, I´m trying to use Struts 1.2 Validator plugin. I guess something in struts-config.xml is missing or wrong. If I add the necessary code to use the plugin validator: plug-in classname=org.apache.struts.validator.ValidatorPlugIn set-property property=pathnames