RE: InvalidPathException processing form
OK, this is solved, but I'm not sure why changing this line of code solved the problem. I will explain. I have a page called default.jsp and it contains the form as shown in my previous email. This page/form has never had an issue displaying. I only see the error stack trace when I submit the form causing validation to fire. In the head of this page I have the following: link href=css/subsite.css rel=stylesheet type=text/css / This is the line causing the issue because the path is wrong (I guess???). When I change the line to link href=../css/subsite.css rel=stylesheet type=text/css / my logs are clean and the problem disappears (since the href is corrected). Very odd why a simple html tag like link / causes issues with struts. And, Yes, the 2nd version of the link tag is correct because I am not deploying off the root. Anyone know why this could happen. thanks -Original Message- From: Jim Kennedy [mailto:jgkenn...@mindspring.com] Sent: Sunday, February 21, 2010 6:37 PM To: 'Struts Users Mailing List' Subject: InvalidPathException processing form I have a fairly simple form at this point and I am getting the above referenced exception when validation fails. Full exception is at the bottom of this email. When my servlet-mapping is set to /run/* I get this exception in my logs, but application seems to work. If I change my servlet-mapping to something like *.do and the form action to /quick.do, the application continues to work and I DON'T get the exception. These don't look critical, but I am not used to seeing this type of exception/error/warning and want to understand what is going on here. It should be perfectly acceptable for me to use either technique. I am using struts 1.3.10. web.xml: !-- Standard Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern/run/*/url-pattern /servlet-mapping struts.xml: form-beans form-bean name=quickSearchForm type=com.rentworx.subsite.sc.struts.QuickSearchForm/ /form-beans !-- === Action Mapping Definitions -- action-mappings !-- Default Welcome action -- !-- Forwards to Welcome.jsp -- action path=/Welcome forward=/welcome.jsp/ action path=/search** type=com.rentworx.subsite.sc.struts.SearchAction forward name=results path=/idxresults.jsp / /action action path=/idx/* type=com.rentworx.subsite.sc.struts.IDXSearchAction forward name=results path=/idxresults.jsp / /action action path=/quick type=com.rentworx.subsite.sc.struts.ProcessSearchAction name=quickSearchForm scope=request input=/default.jsp validate=true forward name=results path=/results.jsp/forward /action /action-mappings default.jsp: div class=errorhtml-el:errors //div html:form action=/quick method=post divbean-el:message key=searchform.city.prompt /: html-el:text property=city title=enter city name/html-el:text /div div class=errorhtml-el:errors property=city header= footer= prefix= suffix=//div div style=margin-top:5pxcounty name: html-el:text property=county title=enter city name/html-el:text/div div class=errorhtml-el:errors property=county header= footer= prefix= suffix=//div html-el:submit value=search/html-el:submit /html:form Exception: * 2010-02-21 18:34:23,273 WARN [org.apache.struts.chain.commands.AbstractExceptionHandler] Unhandled exception org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url. at org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelect Action.java:71) at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase .java:51) at
Re: InvalidPathException processing form
Hi Try using this: link rel=stylesheet href=s:url value=/css/subsite.css/ type=text/css/ On Mon, Feb 22, 2010 at 11:01 AM, Jim Kennedy jgkenn...@mindspring.comwrote: OK, this is solved, but I'm not sure why changing this line of code solved the problem. I will explain. I have a page called default.jsp and it contains the form as shown in my previous email. This page/form has never had an issue displaying. I only see the error stack trace when I submit the form causing validation to fire. In the head of this page I have the following: link href=css/subsite.css rel=stylesheet type=text/css / This is the line causing the issue because the path is wrong (I guess???). When I change the line to link href=../css/subsite.css rel=stylesheet type=text/css / my logs are clean and the problem disappears (since the href is corrected). Very odd why a simple html tag like link / causes issues with struts. And, Yes, the 2nd version of the link tag is correct because I am not deploying off the root. Anyone know why this could happen. thanks -Original Message- From: Jim Kennedy [mailto:jgkenn...@mindspring.com] Sent: Sunday, February 21, 2010 6:37 PM To: 'Struts Users Mailing List' Subject: InvalidPathException processing form I have a fairly simple form at this point and I am getting the above referenced exception when validation fails. Full exception is at the bottom of this email. When my servlet-mapping is set to /run/* I get this exception in my logs, but application seems to work. If I change my servlet-mapping to something like *.do and the form action to /quick.do, the application continues to work and I DON'T get the exception. These don't look critical, but I am not used to seeing this type of exception/error/warning and want to understand what is going on here. It should be perfectly acceptable for me to use either technique. I am using struts 1.3.10. web.xml: !-- Standard Action Servlet Configuration -- servlet servlet-nameaction/servlet-name servlet-classorg.apache.struts.action.ActionServlet/servlet-class init-param param-nameconfig/param-name param-value/WEB-INF/struts-config.xml/param-value /init-param load-on-startup2/load-on-startup /servlet !-- Standard Action Servlet Mapping -- servlet-mapping servlet-nameaction/servlet-name url-pattern/run/*/url-pattern /servlet-mapping struts.xml: form-beans form-bean name=quickSearchForm type=com.rentworx.subsite.sc.struts.QuickSearchForm/ /form-beans !-- === Action Mapping Definitions -- action-mappings !-- Default Welcome action -- !-- Forwards to Welcome.jsp -- action path=/Welcome forward=/welcome.jsp/ action path=/search** type=com.rentworx.subsite.sc.struts.SearchAction forward name=results path=/idxresults.jsp / /action action path=/idx/* type=com.rentworx.subsite.sc.struts.IDXSearchAction forward name=results path=/idxresults.jsp / /action action path=/quick type=com.rentworx.subsite.sc.struts.ProcessSearchAction name=quickSearchForm scope=request input=/default.jsp validate=true forward name=results path=/results.jsp/forward /action /action-mappings default.jsp: div class=errorhtml-el:errors //div html:form action=/quick method=post divbean-el:message key=searchform.city.prompt /: html-el:text property=city title=enter city name/html-el:text /div div class=errorhtml-el:errors property=city header= footer= prefix= suffix=//div div style=margin-top:5pxcounty name: html-el:text property=county title=enter city name/html-el:text/div div class=errorhtml-el:errors property=county header= footer= prefix= suffix=//div html-el:submit value=search/html-el:submit /html:form Exception: * 2010-02-21 18:34:23,273 WARN [org.apache.struts.chain.commands.AbstractExceptionHandler] Unhandled exception org.apache.struts.chain.commands.InvalidPathException: No action config found for the specified url. at org.apache.struts.chain.commands.AbstractSelectAction.execute(AbstractSelect Action.java:71) at