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 --------- <!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" extends="struts-default"> <action name="Test" class="testpackage.Test"> <result>index.jsp</result> </action> </package> </struts> index.jsp --------- <%@ taglib prefix="str" uri="/struts-tags" %> <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Insert title here</title> </head> <body> <str:url id="url" action="Test.action"> <str:param name="test">something</str:param> </str:url> <str:a href="%{url}">CLICK ON</str:a> </body> </html> 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 -------- <?xml version="1.0" encoding="UTF-8"?> <web-app id="web-app_1" xmlns="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"> <display-name>TestWeb</display-name> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app> 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 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]