Re: Struts2 2.0.11 problem with url and parameters

2008-12-02 Thread Tomi21
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. > T

Re: Struts2 2.0.11 problem with url and parameters

2008-11-27 Thread Tomi21
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-27 Thread Nils-Helge Garli Hegvik
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-27 Thread Tomi21
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:/TestW

Re: Struts2 2.0.11 problem with url and parameters

2008-11-26 Thread Dave Newton
--- 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 har

Re: Struts2 2.0.11 problem with url and parameters

2008-11-26 Thread Tomi21
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-26 Thread Andras Balogh
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 PROTE

Re: Struts2 2.0.11 problem with url and parameters

2008-11-26 Thread Tomi21
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Tomi21
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.op

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Lukasz Lenart
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 inter

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Nils-Helge Garli Hegvik
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Tomi21
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 > ex

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Nils-Helge Garli Hegvik
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Lukasz Lenart
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Tomi21
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 f

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Nils-Helge Garli Hegvik
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 t

Re: Struts2 2.0.11 problem with url and parameters

2008-11-25 Thread Tomi21
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 somethi

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Tomi21
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!!.

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Andras Balogh
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 unsubs

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Tomi21
This is my struts.xml: http://struts.apache.org/dtds/struts-2.0.dtd";> error.jsp index.jsp main.jsp

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Nils-Helge Garli Hegvik
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; >} > >

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Tomi21
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 no

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Nils-Helge Garli Hegvik
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

Re: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Dirk Forchel
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

RE: Struts2 2.0.11 problem with url and parameters

2008-11-20 Thread Tomi21
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

RE: Struts2 2.0.11 problem with url and parameters

2008-11-19 Thread volker
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