Thanks for the response KT. We've decided to use the struts-portlet bridge.
Tim -----Original Message----- From: Khaled TLILI [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 28, 2007 12:27 PM To: [email protected] Subject: Re: Jahia 5 Webapp Form Action Issue Tim Pyle a écrit : Hi, In jahia.xml, you have to define the entrypoint of your webapp. In your case, it's "action" (name of the servlet in web.xml) and not "Locator". Another solution (and what is recommended) is to use struts-portlet bridge in order to convert your webapp to a portletJSR168. See: http://portals.apache.org/bridges/multiproject/portals-bridges-struts/index. html KT. > I have a basic struts webapp I'm trying to run in Jahia 5. The webapp > deploys fine but will not run. From what I can tell it does not like the > following code I have in a jsp. > > <html:form action='<%=response.encodeURL(request.getContextPath() + > "/partner_search_action.do")%>' method="POST" onsubmit="return > validatePartnerSearchForm(this);" > > > The following errors are generated when processing this code: > > 11:32:21,070 ERROR [jsp]:704 - Servlet.service() for servlet jsp threw > exception > javax.servlet.jsp.JspException: Cannot retrieve mapping for action > /jahia/Jahia/cache/bypass/pid/2 > > 1296047 [2007-02-27 11:32:21,227] > [org.jahia.services.applications.ServletDispatchingProvider] ERROR - Error > in web application, can't access application Locator > org.apache.jasper.JasperException: Exception in JSP: > /partner_search_form.jsp:74 > > 74: <html:form action='<%=response.encodeURL(request.getContextPath() + > "/partner_search_action.do")%>' method="POST" onsubmit="return > validatePartnerSearchForm(this);" > > > Below is some of my configuration. > > jahia.xml: > <?xml version="1.0" encoding="ISO-8859-1"?> <jahia> > <entrypoints> > <entrypoint> > <name>Locator</name> > <display-name>Locator</display-name> > <description>Locator for Installers and Retailers</description> > <target type="servlet-name">action</target> > </entrypoint> > </entrypoints> > </jahia> > > web.xml: > ... > ... > <servlet> > <servlet-name>action</servlet-name> > > <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> > ... > ... > </servlet> > > <servlet-mapping> > <servlet-name>action</servlet-name> > <url-pattern>*.do</url-pattern> > </servlet-mapping> > ... > ... > <welcome-file-list> > <welcome-file>/partner_search_load_action.do</welcome-file> > </welcome-file-list> > > Any ideas or help on what may be causing this is appreciated. > > Thanks, > Tim Pyle > > > >
