Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Hi Paweł, thanks for pointing this out. This was actually left over from my experiments with early betas of S2 (and with myself getting acquainted with it), i added it because i was under the delusion that i would be able to plainly redirect to a JSP and was hoping to somehow gain access to the action's properties. Now i know better and always redirect to action urls which then dispatch back to the JSP which then can access the action properties. You are right, this additional filter-mapping is indeed not needed anymore and has now been removed. Have lots of fun, Robert Paweł Wielgus wrote: Hi, just as a side note, consider index.jsp in S1 and S2 root, then which app will process it? If i were You i would remove *.jsp from filter and leave only *.action It would eventualy lead to no direct jsp access - which is ok i guess. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Hi Paweł, yes, that did the trick! Using namespace="/my/package" action="myAction_showPage1.action" does not trigger the warning anymore. Thanks! [About my filter mapping: This is needed because i'm working on the first small actions and pages with Struts2 in a huge application which is otherwise using Struts1, so the mapping must specifically avoid "*.do", which is reserved for Struts1.] Thanks again for your help, Robert Paweł Wielgus wrote: Hi, i'm not a pro user in this matter but when i configured my last app with: struts2 /* without modifying struts.action.extension key in struts.properties it works as expected (no extension maps to an action, also *.action is ok). So the question is do You really need *.jsp and *.action in filter? and then if Yes, try to write: in your jsp, because the Warning You are seeing complains about no action A in namespace B. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Yes, that's what the documentation says but in my setup here it simply does not work. If i write the s:form tag as you suggest, then the form action property has the value "/context/my/package/myAction_showPage1", i.e. lacks the ".action" extension and so, when the form is submitted, i get a 404 error. FWIW, here's the struts2-related snippet from my web.xml: struts2 org.apache.struts2.dispatcher.FilterDispatcher struts.custom.i18n.resources my.package.res.MyResources struts.enable.SlashesInActionNames true struts2 *.action struts2 *.jsp Robert Paweł Wielgus wrote: Hi Robert, shouldn't it be: ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : 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): /JSP/myPage1.jsp A typical tag would look so here: ... 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
Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Hi, just as a side note, consider index.jsp in S1 and S2 root, then which app will process it? If i were You i would remove *.jsp from filter and leave only *.action It would eventualy lead to no direct jsp access - which is ok i guess. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : > Hi Paweł, > > yes, that did the trick! Using namespace="/my/package" > action="myAction_showPage1.action" does not trigger the warning anymore. > Thanks! > > [About my filter mapping: This is needed because i'm working on the first > small actions and pages with Struts2 in a huge application which is > otherwise using Struts1, so the mapping must specifically avoid "*.do", > which is reserved for Struts1.] > > Thanks again for your help, > > Robert > > Paweł Wielgus wrote: >> >> Hi, >> i'm not a pro user in this matter but when i configured my last app with: >> >> struts2 >> /* >> >> >> without modifying struts.action.extension key in struts.properties it >> works as expected (no extension maps to an action, also *.action is >> ok). >> >> So the question is do You really need *.jsp and *.action in filter? >> and then if Yes, try to write: >> >> > namespace="/my/package"> >> >> in your jsp, because the Warning You are seeing complains about no >> action A in namespace B. >> >> Best greetings, >> Paweł Wielgus. >> >> >> 2009/1/15 Robert Graf-Waczenski : >> >>> >>> Yes, that's what the documentation says but in my setup here it simply >>> does >>> not work. If i write the s:form tag as you suggest, then the form action >>> property has the value "/context/my/package/myAction_showPage1", i.e. >>> lacks >>> the ".action" extension and so, when the form is submitted, i get a 404 >>> error. >>> >>> FWIW, here's the struts2-related snippet from my web.xml: >>> >>> >>> struts2 >>> >>> >>> org.apache.struts2.dispatcher.FilterDispatcher >>> >>> struts.custom.i18n.resources >>> my.package.res.MyResources >>> >>> >>> struts.enable.SlashesInActionNames >>> true >>> >>> >>> >>> >>> struts2 >>> *.action >>> >>> >>> struts2 >>> *.jsp >>> >>> >>> Robert >>> >>> Paweł Wielgus wrote: >>> Hi Robert, shouldn't it be: >>> namespace="/my/package"> ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : > > 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): > > extends="struts-default"> > > /JSP/myPage1.jsp > > > > A typical tag would look so here: > > > ... > > > 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 > > > > >>> >>> >> >> >> > >
Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Hi Paweł, yes, that did the trick! Using namespace="/my/package" action="myAction_showPage1.action" does not trigger the warning anymore. Thanks! [About my filter mapping: This is needed because i'm working on the first small actions and pages with Struts2 in a huge application which is otherwise using Struts1, so the mapping must specifically avoid "*.do", which is reserved for Struts1.] Thanks again for your help, Robert Paweł Wielgus wrote: Hi, i'm not a pro user in this matter but when i configured my last app with: struts2 /* without modifying struts.action.extension key in struts.properties it works as expected (no extension maps to an action, also *.action is ok). So the question is do You really need *.jsp and *.action in filter? and then if Yes, try to write: in your jsp, because the Warning You are seeing complains about no action A in namespace B. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : Yes, that's what the documentation says but in my setup here it simply does not work. If i write the s:form tag as you suggest, then the form action property has the value "/context/my/package/myAction_showPage1", i.e. lacks the ".action" extension and so, when the form is submitted, i get a 404 error. FWIW, here's the struts2-related snippet from my web.xml: struts2 org.apache.struts2.dispatcher.FilterDispatcher struts.custom.i18n.resources my.package.res.MyResources struts.enable.SlashesInActionNames true struts2 *.action struts2 *.jsp Robert Paweł Wielgus wrote: Hi Robert, shouldn't it be: ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : 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): /JSP/myPage1.jsp A typical tag would look so here: ... 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
Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Hi, i'm not a pro user in this matter but when i configured my last app with: struts2 /* without modifying struts.action.extension key in struts.properties it works as expected (no extension maps to an action, also *.action is ok). So the question is do You really need *.jsp and *.action in filter? and then if Yes, try to write: in your jsp, because the Warning You are seeing complains about no action A in namespace B. Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : > Yes, that's what the documentation says but in my setup here it simply does > not work. If i write the s:form tag as you suggest, then the form action > property has the value "/context/my/package/myAction_showPage1", i.e. lacks > the ".action" extension and so, when the form is submitted, i get a 404 > error. > > FWIW, here's the struts2-related snippet from my web.xml: > > > struts2 > > org.apache.struts2.dispatcher.FilterDispatcher > > struts.custom.i18n.resources > my.package.res.MyResources > > > struts.enable.SlashesInActionNames > true > > > > > struts2 > *.action > > > struts2 > *.jsp > > > Robert > > Paweł Wielgus wrote: >> >> Hi Robert, >> shouldn't it be: >> > namespace="/my/package"> >> ? >> >> Best greetings, >> Paweł Wielgus. >> >> 2009/1/15 Robert Graf-Waczenski : >> >>> >>> 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): >>> >>> >> extends="struts-default"> >>> >>> /JSP/myPage1.jsp >>> >>> >>> >>> A typical tag would look so here: >>> >>> >>> ... >>> >>> >>> 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 >>> >>> >>> >> >> >> > >
Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Yes, that's what the documentation says but in my setup here it simply does not work. If i write the s:form tag as you suggest, then the form action property has the value "/context/my/package/myAction_showPage1", i.e. lacks the ".action" extension and so, when the form is submitted, i get a 404 error. FWIW, here's the struts2-related snippet from my web.xml: struts2 org.apache.struts2.dispatcher.FilterDispatcher struts.custom.i18n.resources my.package.res.MyResources struts.enable.SlashesInActionNames true struts2 *.action struts2 *.jsp Robert Paweł Wielgus wrote: Hi Robert, shouldn't it be: ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : 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): /JSP/myPage1.jsp A typical tag would look so here: ... 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
Re: [S2] How to get rid of "WARNING: No configuration found for the specified action:"?
Hi Robert, shouldn't it be: ? Best greetings, Paweł Wielgus. 2009/1/15 Robert Graf-Waczenski : > 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): > >extends="struts-default"> > > /JSP/myPage1.jsp > > > > A typical tag would look so here: > > > ... > > > 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 > >
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: 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): extends="struts-default"> method="{1}"> /JSP/myPage1.jsp A typical tag would look so here: ... 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