Re: [S2] How to get rid of WARNING: No configuration found for the specified action:?
Hey, it's just an ace (?), but shouldn't you omit the *.action file extension in the action-attribute. Struts2 will fill in the extension configured in your struts.properties automatically. Try something like this: s:form name=theForm action=/my/package/myAction_showPage1 Perhaps, that helps. (Can't test it now) Christian Robert Graf-Waczenski schrieb: Hi all, i'm using S2 since a while now (started with 2.0 betas and using 2.1.6 GA currently) and one of the issues that i'm still having is that even though my struts.xml is configured properly (meaning that all the intended action methods are called as i want them to be called), i'm still seeing this here on the console for each action invocation: WARNING: No configuration found for the specified action: [details follow] Here's what my struts.xml looks like (downstripped, of course): package namespace=/my/package name=my.package extends=struts-default action name=myAction_* class=my.package.MyAction method={1} result name=showPage1_Success/JSP/myPage1.jsp/result /action /package A typical s:form tag would look so here: s:form name=theForm action=/my/package/myAction_showPage1.action ... /s:form With this, i get this here on the java console: WARNING: No configuration found for the specified action: '/my/package/myAction_showPage1.action' in namespace: '/my/package'. Form action defaulting to 'action' attribute's literal value. [Using the wildcard mapping as shown above (which is, btw, a cool feature of S2 yielding fewer action classes that can be bound semantically to the type of object they work with and not to the button/link a user is clicking) is a rather recent change in my struts.xml, i have received the same warnings without wildcard mapping.] I would like to get rid of these warnings. I remember vaguely that someone suggested to configure some logging property somewhere (a pointer on how to do this would be appreciated, of course) but i would rather prefer to configure my actions in such a way that the warning is not even triggered. Any suggestions? Robert - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:property tag with action attribute of form/submit
Hey, since %{actionUrl} is simple OGNL you should be able to use it directly in the s:submit-Tag like this: s:submit value=Calendar Logout action=%{actionUrl} theme=ajax targets=dummy_div / Christian Leena Borle schrieb: Hello, I want to use s:property tag in action attribute of s:submit, like this, s:submit value=Calendar Logout action=s:property value=%{actionUrl} / theme=ajax targets=dummy_div / Is this possible ? I am getting errors while compiling this JSP . I even tried s:property value=calLogoutUrl /. Doesn't work. Leena - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[S2] Avoiding nested tags / Using Sitemesh properties within Struts 2 tags
Hey, I want to use a sitemesh property obtained by the tag decorator:getProperty property=paramName / within a Struts2 tag to make a special include dynamically controllable by the decorated content page. But as we all know a nested tag like s:include value=decorator:getProperty property=paramName / / won't work. Now my question: What alternative do I have to achieve what I want (if there is a possibility at all) ? I'm using Struts 2.0.14 with the sitemesh-plugin and neither Freemarker nor Velocity, just simple JSPs. Thanks in advance, Christian - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[S2] Avoiding nested tags / Using Sitemesh properties within Struts 2 tags
Hey, I want to use a sitemesh property got by the tag decorator:getProperty property=paramName / within a Struts2 tag to make a special include dynamically controllable by the decorated content page. But as we all know a nested tag like s:include value=decorator:getProperty property=paramName / / won't work. Now my question: What alternative do I have to achieve what I want (if there is a possibility at all) ? I'm using Struts 2.0.14 with the sitemesh-plugin and neither Freemarker nor Velocity, just simple JSPs. Thanks in advance, Christian -- Sensationsangebot verlängert: GMX FreeDSL - Telefonanschluss + DSL für nur 16,37 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K1308T4569a - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: [S2] Avoiding nested tags / Using Sitemesh properties within Struts 2 tags
Thanks Dave für your answer! That's what I thought of first :) But I haven't found a solution yet. Unfortunately there apparently isn't an accepted notation like s:set name=dynInc scope=requestdecorator:getProperty property=paramName //set. The value can only be set by the value-attribute, right? I hope there is another possibility. I didn't thought I'm the only one with such a need. Thanks, Christian Dave Newton schrieb: Christian Priebe wrote: s:include value=decorator:getProperty property=paramName / / won't work. Now my question: What alternative do I have to achieve what I want (if there is a possibility at all)? Is there a way to put the decorator properties into a JEE scope? If so, you can just use OGNL. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org