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.
 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 s:a... tag for non-Ajax URLs, too--what
 if
 you use a plain HTML a... 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

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 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 s:a... tag for non-Ajax URLs, too--what if
 you use a plain HTML a... 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

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 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 s:a... tag for non-Ajax URLs, too--what if
 you use a plain HTML a... 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

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:/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 s:a... tag for non-Ajax URLs, too--what if
 you use a plain HTML a... 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

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 PROTECTED]



Re: Struts2 2.0.11 problem with url and parameters

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

-- 
View this message in context: 
http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p20697863.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

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?

This the struts.xml as is now:

!DOCTYPE struts PUBLIC -//Apache Software Foundation//DTD Struts
Configuration 2.0//EN http://struts.apache.org/dtds/struts-2.0.dtd;
struts

package name=default
result-types
result-type name=chain
class=com.opensymphony.xwork2.ActionChainResult/
result-type name=dispatcher
class=org.apache.struts2.dispatcher.ServletDispatcherResult
default=true/
result-type name=freemarker
class=org.apache.struts2.views.freemarker.FreemarkerResult/
result-type name=httpheader
class=org.apache.struts2.dispatcher.HttpHeaderResult/
result-type name=redirect
class=org.apache.struts2.dispatcher.ServletRedirectResult/
result-type name=redirectAction
class=org.apache.struts2.dispatcher.ServletActionRedirectResult/
result-type name=stream
class=org.apache.struts2.dispatcher.StreamResult/
result-type name=velocity
class=org.apache.struts2.dispatcher.VelocityResult/
result-type name=xslt
class=org.apache.struts2.views.xslt.XSLTResult/
result-type name=plainText
class=org.apache.struts2.dispatcher.PlainTextResult /
!-- Deprecated name form scheduled for removal in Struts 2.1.0.
The camelCase versions are preferred. See ww-1707 --
result-type name=redirect-action
class=org.apache.struts2.dispatcher.ServletActionRedirectResult/
result-type name=plaintext
class=org.apache.struts2.dispatcher.PlainTextResult /
/result-types


action name=Test class=testpackage.Test   
resultindex.jsp/result
/action 
   /package
/struts

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

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 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 s:a... tag for non-Ajax URLs, too--what if you 
use a plain HTML a... 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

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
 url 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

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 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
 url 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

2008-11-25 Thread Tomi21

This is my jsp code:

str:url id=url_delete action=EliminarSuscripcion.action
str:param name=index value=%{#stat.index}/str:param
/str:url
str:a href=%{url_delete}Eliminar/str:a

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
 url 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

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
 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

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
 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

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 PROTECTED]



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 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

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
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

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

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 ?
 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]



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 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]






  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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 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]



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 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
  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]
 
 
 

-- 
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

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;
}

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
  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]




 --
 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

2008-11-20 Thread Tomi21
 
   action name=Atras2
class=es.uv.lisitt.dtx2.configuraciontool.web.Atras2
result name=errorerror.jsp/result 

result 
name=successnueva_suscripcion_p2.jsp/result
 
  /action   
  action name=EliminarSuscripcion
class=es.uv.lisitt.dtx2.configuraciontool.web.EliminarSuscripcion
result name=successlista_suscripcionesP.jsp/result
result name=errorerror.jsp/result
result name=inputmain.jsp/result
  /action 
  action name=EditarSuscripcionP
class=es.uv.lisitt.dtx2.configuraciontool.web.EditarSuscripcionP
result name=successobtener_tipos.jsp/result
result name=errorerror.jsp/result 
  /action   
  action name=ObtenerTipos
class=es.uv.lisitt.dtx2.configuraciontool.web.ObtenerTipos
result name=errorerror.jsp/result 
result name=inputnueva_suscripcion_p1.jsp/result
resultnueva_suscripcion_p1.jsp/result
  /action 
   /package
/struts


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
  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]




 --
 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]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts2-2.0.11-problem-with-url-and-parameters-tp20577582p20597914.html
Sent from the Struts - User mailing list archive at Nabble.com

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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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
url 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]



Struts2 2.0.11 problem with url and parameters

2008-11-19 Thread Tomi21

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-tp20577582p20577582.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

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