Re: Struts2 2.0.11 problem with url and parameters
If someone has experienced problems with struts2 applications running on oc4j please give a hand. What tests can I do in order to identify de precise problem with oc4j? Thanks!! Tomi21 wrote: > > OK, good news!! > > I've installed a fresh apache tomcat 6.018 and everything is working now. > The problem is that my app. must run on a 0c4j 10.1.3.1. > It seems that there is a problem with oc4j. > Does anyone know what problem can be? > Can anyone tell me wich are the minimum .jar's needed in order for struts2 > to work. > I'am not using spring. > > I really appreciate your help!! > > Tomás > > > > Nils-Helge Garli wrote: >> >> Maybe it's something wrong with your runtime environment. Try setting >> your project up on a different fresh app server (or maybe try the >> maven jetty plugin) and see if you get the same behaviour there. >> >> Nils-H >> >> On Thu, Nov 27, 2008 at 11:58 AM, Tomi21 <[EMAIL PROTECTED]> wrote: >>> >>> I know, but I did it just in case I found something out. >>> In my previous example the println it is being execute but the value of >>> test >>> is NULL.In other words, the action gets executed but the parameter is >>> not >>> set. >>> >>> Now, as you said in your post, I've changed the link to: >>> http://localhost:/TestWeb/Test.action?test=something CLICK ON >>> But I'm obtaining the same result: the actions gets executed but the >>> parameters is not set. >>> Of course I've configured again the default interceptors. >>> >>> I've also tried taking out .action extension but with the same result. >>> >>> Thanks!!. >>> >>> >>> newton.dave wrote: --- On Wed, 11/26/08, Tomi21 <[EMAIL PROTECTED]> wrote: > What I've done next is changing 'struts.xml' so > there are no interceptors configured. > The packagedoes not extend struts-default anymore. > The action is still being executed but the parameter is not > being set anyway.:( Well that's hardly surprising, it's an interceptor that sets parameters. On your previous example the test println isn't even being executed, so there's something else wrong, no? What if you use the url tag's "action" attribute w/o the ".action" extension? Is the link rendering properly? In general we don't use the tag for non-Ajax URLs, too--what if you use a plain HTML tag with the generated URL? Dave - 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-tp20577582p20717192.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-tp20577582p20793209.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]
Re: Struts2 2.0.11 problem with url and parameters
OK, good news!! I've installed a fresh apache tomcat 6.018 and everything is working now. The problem is that my app. must run on a 0c4j 10.1.3.1. It seems that there is a problem with oc4j. Does anyone know what problem can be? Can anyone tell me wich are the minimum .jar's needed in order for struts2 to work. I'am not using spring. I really appreciate your help!! Tomás Nils-Helge Garli wrote: > > Maybe it's something wrong with your runtime environment. Try setting > your project up on a different fresh app server (or maybe try the > maven jetty plugin) and see if you get the same behaviour there. > > Nils-H > > On Thu, Nov 27, 2008 at 11:58 AM, Tomi21 <[EMAIL PROTECTED]> wrote: >> >> I know, but I did it just in case I found something out. >> In my previous example the println it is being execute but the value of >> test >> is NULL.In other words, the action gets executed but the parameter is not >> set. >> >> Now, as you said in your post, I've changed the link to: >> http://localhost:/TestWeb/Test.action?test=something CLICK ON >> But I'm obtaining the same result: the actions gets executed but the >> parameters is not set. >> Of course I've configured again the default interceptors. >> >> I've also tried taking out .action extension but with the same result. >> >> Thanks!!. >> >> >> newton.dave wrote: >>> >>> --- On Wed, 11/26/08, Tomi21 <[EMAIL PROTECTED]> wrote: What I've done next is changing 'struts.xml' so there are no interceptors configured. The packagedoes not extend struts-default anymore. The action is still being executed but the parameter is not being set anyway.:( >>> >>> Well that's hardly surprising, it's an interceptor that sets parameters. >>> >>> On your previous example the test println isn't even being executed, so >>> there's something else wrong, no? What if you use the url tag's "action" >>> attribute w/o the ".action" extension? Is the link rendering properly? >>> >>> In general we don't use the tag for non-Ajax URLs, too--what if >>> you use a plain HTML tag with the generated URL? >>> >>> Dave >>> >>> >>> - >>> 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-tp20577582p20717192.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-tp20577582p20717983.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]
Re: Struts2 2.0.11 problem with url and parameters
Maybe it's something wrong with your runtime environment. Try setting your project up on a different fresh app server (or maybe try the maven jetty plugin) and see if you get the same behaviour there. Nils-H On Thu, Nov 27, 2008 at 11:58 AM, Tomi21 <[EMAIL PROTECTED]> wrote: > > I know, but I did it just in case I found something out. > In my previous example the println it is being execute but the value of test > is NULL.In other words, the action gets executed but the parameter is not > set. > > Now, as you said in your post, I've changed the link to: > http://localhost:/TestWeb/Test.action?test=something CLICK ON > But I'm obtaining the same result: the actions gets executed but the > parameters is not set. > Of course I've configured again the default interceptors. > > I've also tried taking out .action extension but with the same result. > > Thanks!!. > > > newton.dave wrote: >> >> --- On Wed, 11/26/08, Tomi21 <[EMAIL PROTECTED]> wrote: >>> What I've done next is changing 'struts.xml' so >>> there are no interceptors configured. >>> The packagedoes not extend struts-default anymore. >>> The action is still being executed but the parameter is not >>> being set anyway.:( >> >> Well that's hardly surprising, it's an interceptor that sets parameters. >> >> On your previous example the test println isn't even being executed, so >> there's something else wrong, no? What if you use the url tag's "action" >> attribute w/o the ".action" extension? Is the link rendering properly? >> >> In general we don't use the tag for non-Ajax URLs, too--what if >> you use a plain HTML tag with the generated URL? >> >> Dave >> >> >> - >> 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-tp20577582p20717192.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]
Re: Struts2 2.0.11 problem with url and parameters
I know, but I did it just in case I found something out. In my previous example the println it is being execute but the value of test is NULL.In other words, the action gets executed but the parameter is not set. Now, as you said in your post, I've changed the link to: http://localhost:/TestWeb/Test.action?test=something CLICK ON But I'm obtaining the same result: the actions gets executed but the parameters is not set. Of course I've configured again the default interceptors. I've also tried taking out .action extension but with the same result. Thanks!!. newton.dave wrote: > > --- On Wed, 11/26/08, Tomi21 <[EMAIL PROTECTED]> wrote: >> What I've done next is changing 'struts.xml' so >> there are no interceptors configured. >> The packagedoes not extend struts-default anymore. >> The action is still being executed but the parameter is not >> being set anyway.:( > > Well that's hardly surprising, it's an interceptor that sets parameters. > > On your previous example the test println isn't even being executed, so > there's something else wrong, no? What if you use the url tag's "action" > attribute w/o the ".action" extension? Is the link rendering properly? > > In general we don't use the tag for non-Ajax URLs, too--what if > you use a plain HTML tag with the generated URL? > > Dave > > > - > 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-tp20577582p20717192.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]
Re: Struts2 2.0.11 problem with url and parameters
--- On Wed, 11/26/08, Tomi21 <[EMAIL PROTECTED]> wrote: > What I've done next is changing 'struts.xml' so > there are no interceptors configured. > The packagedoes not extend struts-default anymore. > The action is still being executed but the parameter is not > being set anyway.:( Well that's hardly surprising, it's an interceptor that sets parameters. On your previous example the test println isn't even being executed, so there's something else wrong, no? What if you use the url tag's "action" attribute w/o the ".action" extension? Is the link rendering properly? In general we don't use the tag for non-Ajax URLs, too--what if you use a plain HTML tag with the generated URL? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 2.0.11 problem with url and parameters
Hi, I've try that but interceptors dont say anything. What I've done next is changing 'struts.xml' so there are no interceptors configured. The packagedoes not extend struts-default anymore. The action is still being executed but the parameter is not being set anyway.:( Any ideas from this point? This the struts.xml as is now: http://struts.apache.org/dtds/struts-2.0.dtd";> index.jsp Thank you!! Andras Balogh wrote: > > Hi, > Can you set the log level to DEBUG to see what the interceptors say? > Something like: > log4j.category.com.opensymphony=DEBUG > > BR, Andras > > > - > 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-tp20577582p20703831.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]
Re: Struts2 2.0.11 problem with url and parameters
Hi, Can you set the log level to DEBUG to see what the interceptors say? Something like: log4j.category.com.opensymphony=DEBUG BR, Andras - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 2.0.11 problem with url and parameters
I've create a sample application with only one jsp, one action and no user-defined interceptors. Even in this case the parameter is not being set. These are the application main file. Please help!!I don't know what more I can try. struts.xml - http://struts.apache.org/dtds/struts-2.0.dtd";> index.jsp index.jsp - <%@ taglib prefix="str" uri="/struts-tags" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> http://www.w3.org/TR/html4/loose.dtd";> Insert title here something CLICK ON Test.java - package testpackage; import com.opensymphony.xwork2.ActionSupport; public class Test extends ActionSupport { /** * */ private static final long serialVersionUID = 1L; private String test; public String execute(){ System.out.println("TEST: " + test); return ActionSupport.SUCCESS; } public void setTest(String test) { this.test = test; } public String getTest() { return test; } } Web.xml http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; version="2.4"> TestWeb struts2 org.apache.struts2.dispatcher.FilterDispatcher struts2 /* index.jsp Trace - 08/11/26 10:44:55 TEST: null 26-nov-2008 10:44:55 com.opensymphony.xwork2.util.profiling.UtilTimerStack printTimes INFO: [63ms] - FilterDispatcher_doFilter: [47ms] - Handling request from Dispatcher [0ms] - create DefaultActionProxy: [0ms] - create DefaultActionInvocation: [0ms] - actionCreate: Test [47ms] - invoke: [47ms] - interceptor: exception [47ms] - invoke: [47ms] - interceptor: alias [47ms] - invoke: [47ms] - interceptor: servletConfig [47ms] - invoke: [47ms] - interceptor: prepare [47ms] - invoke: [47ms] - interceptor: i18n [47ms] - invoke: [47ms] - interceptor: chain [47ms] - invoke: [47ms] - interceptor: debugging [47ms] - invoke: [47ms] - interceptor: profiling [47ms] - invoke: [47ms] - interceptor: scopedModelDriven [47ms] - invoke: [47ms] - interceptor: modelDriven [47ms] - invoke: [47ms] - interceptor: fileUpload [47ms] - invoke: [47ms] - interceptor: checkbox [47ms] - invoke: [47ms] - interceptor: staticParams [47ms] - invoke: [47ms] - interceptor: params [47ms] - invoke: [47ms] - interceptor: conversionError [47ms] - invoke: [47ms] - interceptor: validation [47ms] - invoke: [47ms] - interceptor: workflow [47ms] - invoke: [0ms] - invokeAction: Test [47ms] - executeResult: success Best regards!! Nils-Helge Garli wrote: > > It's hard to tell. Everything looks correct. But there might be hidden > a config error or something somewhere else in your application. > Considering that it seems to work for everybody else, I suggest that > you try to create a sample app from scratch with just one jsp and one > action and see if you can reproduce the error somehow. > > Nils-H > > On Tue, Nov 25, 2008 at 11:41 AM, Tomi21 <[EMAIL PROTECTED]> wrote: >> >> These interceptors are not configured for 'EliminarSuscripcion' action. >> If interceptors have something to do with thi
Re: Struts2 2.0.11 problem with url and parameters
This is the code of one of my interceptors: package es.uv.lisitt.dtx2.configuraciontool.web; import java.util.Map; import org.apache.log4j.Logger; import com.opensymphony.xwork2.Action; import com.opensymphony.xwork2.ActionContext; import com.opensymphony.xwork2.ActionInvocation; import com.opensymphony.xwork2.ValidationAware; import com.opensymphony.xwork2.interceptor.AbstractInterceptor; import es.uv.lisitt.dtx2.utilidades.Errores; public class NuevaSuscripcionP1Interceptor extends AbstractInterceptor { private static final long serialVersionUID = 1L; /** * Datos de Logger */ static Logger log = Logger.getLogger(NuevaSuscripcionP1Interceptor.class); public String intercept(ActionInvocation invocation) throws Exception { String fechaInicio = null; String horaInicio = null; String fechaFin = null; String horaFin = null; Map parameters; try{ parameters = ActionContext.getContext().getParameters(); fechaInicio = parameters.get("fechaInicio")[0]; if(fechaInicio.equalsIgnoreCase("")){ fechaInicio = null; } horaInicio = parameters.get("horaInicio")[0]; if(horaInicio.equalsIgnoreCase("")){ horaInicio = null; } fechaFin = parameters.get("fechaFin")[0]; if(fechaFin.equalsIgnoreCase("")){ fechaFin = null; } horaFin = parameters.get("horaFin")[0]; if(horaFin.equalsIgnoreCase("")){ horaFin = null; } if ((fechaInicio!=null) || (fechaFin!=null) || (horaInicio!=null) || (horaInicio!=null) ){ if ((fechaInicio==null) || (fechaFin==null) || (horaInicio==null) || (fechaInicio==null) ){ addActionError(invocation,"Para introducir las fechas debe rellenar todos los campos obligatoriamente"); if((fechaInicio==null)||(fechaInicio.equalsIgnoreCase(""))){ addFieldError(invocation, "fechaInicio", ""); } if((horaInicio==null)||(horaInicio.equalsIgnoreCase(""))){ addFieldError(invocation, "horaInicio", ""); } if((fechaFin==null)||(fechaFin.equalsIgnoreCase(""))){ addFieldError(invocation, "fechaFin", ""); } if((horaFin==null)||(horaFin.equalsIgnoreCase(""))){ addFieldError(invocation, "horaFin", ""); } return Action.INPUT; } } }catch (Exception e) { log.error(e); log.error(Errores.formateaPila(e.getStackTrace())); } return invocation.invoke(); } private void addActionError(ActionInvocation invocation, String message) { Object action = invocation.getAction(); if(action instanceof ValidationAware) { ((ValidationAware) action).addActionError(message); } } private void addFieldError(ActionInvocation invocation, String field,String message) { Object action = invocation.getAction(); if(action instanceof ValidationAware) { ((ValidationAware) action).addFieldError(field, message); } } } Lukasz Lenart wrote: > > 2008/11/25 Tomi21 <[EMAIL PROTECTED]>: >> These interceptors are not configured for 'EliminarSuscripcion' action. >> If interceptors have something to do with this issue only the ones >> defined >> in the default stack >> are concerned. > > Yes, but I must look in to the Struts2 source to check how the > interceptors are created. Mayb
Re: Struts2 2.0.11 problem with url and parameters
2008/11/25 Tomi21 <[EMAIL PROTECTED]>: > These interceptors are not configured for 'EliminarSuscripcion' action. > If interceptors have something to do with this issue only the ones defined > in the default stack > are concerned. Yes, but I must look in to the Struts2 source to check how the interceptors are created. Maybe that can be somehow related to your problem. Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 2.0.11 problem with url and parameters
It's hard to tell. Everything looks correct. But there might be hidden a config error or something somewhere else in your application. Considering that it seems to work for everybody else, I suggest that you try to create a sample app from scratch with just one jsp and one action and see if you can reproduce the error somehow. Nils-H On Tue, Nov 25, 2008 at 11:41 AM, Tomi21 <[EMAIL PROTECTED]> wrote: > > These interceptors are not configured for 'EliminarSuscripcion' action. > If interceptors have something to do with this issue only the ones defined > in the default stack > are concerned. > > Thanks!!! > > > Lukasz Lenart wrote: >> >> I noticed two custom interceptors, maybe that's the source of problem >> existeUserName >> validadorFechas >> >> >> Regards >> -- >> Lukasz >> http://www.lenart.org.pl/ >> >> - >> 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-tp20577582p20678768.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]
Re: Struts2 2.0.11 problem with url and parameters
These interceptors are not configured for 'EliminarSuscripcion' action. If interceptors have something to do with this issue only the ones defined in the default stack are concerned. Thanks!!! Lukasz Lenart wrote: > > I noticed two custom interceptors, maybe that's the source of problem > existeUserName > validadorFechas > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > 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-tp20577582p20678768.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]
Re: Struts2 2.0.11 problem with url and parameters
Yeah, that's what I was thinking also, but from the struts.xml it looks like it's not associated with the action in question. Nils-H On Tue, Nov 25, 2008 at 11:04 AM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > I noticed two custom interceptors, maybe that's the source of problem > existeUserName > validadorFechas > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > - > 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]
Re: Struts2 2.0.11 problem with url and parameters
I noticed two custom interceptors, maybe that's the source of problem existeUserName validadorFechas Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 2.0.11 problem with url and parameters
This is my jsp code: Eliminar Once is rendered it looks like this: /ConfiguracionDTX2Web/EliminarSuscripcion.action?index=0 Eliminar I've implemented the ParameterAware interface. The function "public void setParameters(Map arg0)" is being called but the Map 'arg0' is NULL. Any ideas from this point? Thanks in advance. Nils-Helge Garli wrote: > > What does your jsp look like? Have you tried implementing > ParameterAware and see if any parameters are passed at all? > > Nils-H > > On Tue, Nov 25, 2008 at 10:04 AM, Tomi21 <[EMAIL PROTECTED]> wrote: >> >> Can Someone give me a hand please? >> >> Thanks very much!! >> >> Tomi21 wrote: >>> >>> I've changed the type to Integer and is still not working. If I set the >>> parameteres with a form and POST method everything works fine but if I >>> use >>> tag (GET method) the setter is never called. >>> >>> Has it maybe something to do with interceptors? >>> >>> Thanks for helping. I'm going crazy with this issue!!. >>> >>> >>> Andras Balogh wrote: Hi, Only in this case is not working with the parameter "indice" or none of the parameters (in other actions) are set? Can you try to use Integer instead of int? For me it works with Integer. Best regards, Andras. - 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-tp20577582p20677399.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-tp20577582p20678025.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]
Re: Struts2 2.0.11 problem with url and parameters
What does your jsp look like? Have you tried implementing ParameterAware and see if any parameters are passed at all? Nils-H On Tue, Nov 25, 2008 at 10:04 AM, Tomi21 <[EMAIL PROTECTED]> wrote: > > Can Someone give me a hand please? > > Thanks very much!! > > Tomi21 wrote: >> >> I've changed the type to Integer and is still not working. If I set the >> parameteres with a form and POST method everything works fine but if I use >> tag (GET method) the setter is never called. >> >> Has it maybe something to do with interceptors? >> >> Thanks for helping. I'm going crazy with this issue!!. >> >> >> Andras Balogh wrote: >>> >>> Hi, >>> >>> Only in this case is not working with the parameter "indice" or none of >>> the parameters (in other actions) are set? >>> Can you try to use Integer instead of int? For me it works with Integer. >>> >>> Best regards, >>> Andras. >>> >>> - >>> 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-tp20577582p20677399.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]
Re: Struts2 2.0.11 problem with url and parameters
Can Someone give me a hand please? Thanks very much!! Tomi21 wrote: > > I've changed the type to Integer and is still not working. If I set the > parameteres with a form and POST method everything works fine but if I use > tag (GET method) the setter is never called. > > Has it maybe something to do with interceptors? > > Thanks for helping. I'm going crazy with this issue!!. > > > Andras Balogh wrote: >> >> Hi, >> >> Only in this case is not working with the parameter "indice" or none of >> the parameters (in other actions) are set? >> Can you try to use Integer instead of int? For me it works with Integer. >> >> Best regards, >> Andras. >> >> - >> 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-tp20577582p20677399.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]
Re: Struts2 2.0.11 problem with url and parameters
I've changed the type to Integer and is still not working. If I set the parameteres with a form and POST method everything works fine but if I use tag (GET method) the setter is never called. Has it maybe something to do with interceptors? Thanks for helping. I'm going crazy with this issue!!. Andras Balogh wrote: > > Hi, > > Only in this case is not working with the parameter "indice" or none of > the parameters (in other actions) are set? > Can you try to use Integer instead of int? For me it works with Integer. > > Best regards, > Andras. > > - > 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-tp20577582p2058.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]
Re: Struts2 2.0.11 problem with url and parameters
Hi, Only in this case is not working with the parameter "indice" or none of the parameters (in other actions) are set? Can you try to use Integer instead of int? For me it works with Integer. Best regards, Andras. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts2 2.0.11 problem with url and parameters
This is my struts.xml: http://struts.apache.org/dtds/struts-2.0.dtd";> error.jsp index.jsp main.jsp lista_parametros.jsp lista_parametros.jsp nuevo_parametro.jsp lista_parametros.jsp index.jsp index.jsp estado.jsp error.jsp nuevo_usuario.jsp lista_usuarios.jsp error.jsp editar_usuario.jsp lista_usuarios.jsp lista_usuarios.jsp error.jsp nueva_suscripcion_p1.jsp nueva_suscripcion_p2.jsp error.jsp nueva_suscripcion_p2.jsp nueva_suscripcion_p3.jsp error.jsp main.jsp error.jsp nueva_suscripcion_p1.jsp error.jsp nueva_suscripcion_p2.jsp lista_suscripcionesP.jsp error.jsp main.jsp obtener_tipos.jsp error.jsp error.jsp nueva_suscripcion_p1.jsp nueva_suscripcion_p1.jsp Nils-Helge Garli wrote: > > What does your struts.xml look like? > > Nils-H > > On Thu, Nov 20, 2008 at 10:01 AM, Tomi21 <[EMAIL PROTECTED]> wrote: >> >> I'm sorry!!it seems to be too early for me. >> I have both getter and setter of course: >> >> >>public int getIndice() { >>return indice; >>} >> >>public void setIndice(int indice) { >>this.indice = indice; >>} >> >> The setIndice method is not being called. >> >> Thanks for the help. >> >> >> Nils-Helge Garli wrote: >>> >>> 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:/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 > > > > 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().getParam
Re: Struts2 2.0.11 problem with url and parameters
What does your struts.xml look like? Nils-H On Thu, Nov 20, 2008 at 10:01 AM, Tomi21 <[EMAIL PROTECTED]> wrote: > > I'm sorry!!it seems to be too early for me. > I have both getter and setter of course: > > >public int getIndice() { >return indice; >} > >public void setIndice(int indice) { >this.indice = indice; >} > > The setIndice method is not being called. > > Thanks for the help. > > > Nils-Helge Garli wrote: >> >> 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:/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 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?. Eliminar 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] >> >> >> > > -- > View this message in context: > http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p20597308.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]
Re: Struts2 2.0.11 problem with url and parameters
I'm sorry!!it seems to be too early for me. I have both getter and setter of course: public int getIndice() { return indice; } public void setIndice(int indice) { this.indice = indice; } The setIndice method is not being called. Thanks for the help. Nils-Helge Garli wrote: > > 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:/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 >>> >>> >>> >>> 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?. >>> >>> >>> >>> >>> Eliminar >>> >>> 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] > > > -- View this message in context: http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p20597308.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]
Re: Struts2 2.0.11 problem with url and parameters
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:/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 >> >> >> >> 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?. >> >> >> >> >> Eliminar >> >> 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]
Re: Struts2 2.0.11 problem with url and parameters
Hallo Tomi, this is obviously a getter and not a setter method. try public void setIndice(int indice) { this.indice = indice } Dirk Tomi21 wrote: This is my complete URL: http://localhost:/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 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?. Eliminar 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts2 2.0.11 problem with url and parameters
This is my complete URL: http://localhost:/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 > > > > 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?. > > > > > Eliminar > > 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]
RE: Struts2 2.0.11 problem with url and parameters
Hi, what does your parameter look like ? Is it ?parameter=value ?? Try using 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?. Eliminar 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]