That's not a setter but a getter. Unless you have a setIndice method in your action it won't be set.
Nils-H On Thu, Nov 20, 2008 at 9:32 AM, Tomi21 <[EMAIL PROTECTED]> wrote: > > This is my complete URL: > http://localhost:8888/ConfiguracionDTX2Web/EliminarSuscripcion.action?indice=4 > > And this this is my setter: > > public int getIndice() { > return indice; > } > > Any ideas? > > Thanks!!. > > > Volker Karlmeier wrote: >> >> Hi, >> >> what does your parameter look like ? >> Is it ?parameter=value ?? >> >> Try using >> <s:url action="editGadget"> >> <s:param name="id" value="%{selected}" /> >> </s:url> >> where name is the name of your setter-method. (In this case setId) >> >> Regards >> >> Volker >> >> >> >> >> Hi all, >> >> I have a url with a parameter. This parameter is sent to the action via >> HTTP >> Get Method(i.e appended at the end of the url --> ?parameter_value). My >> problem is that I can't reach the parameter value in the action because >> the >> setter method is not being called. I can't get the value throught >> >> 'ActionContext.getContext().getParameters();' neither. >> >> This is my code. What I'm doing wrong?. >> >> <str:url id="url_delete" action="EliminarSuscripcion"> >> <str:param name="indice" value="%{#stat.index}"></str:param> >> </str:url> >> <str:a href="%{url_delete}">Eliminar</str:a> >> >> Thanks in advance. >> -- >> View this message in context: >> http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p >> 20577582.html >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p20596942.html > Sent from the Struts - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]