Lim Hock-Chai wrote:
I'm getting the "cannot retrieve mapping for action" error when using EL
expression in the action attribute of <html:form> tag. See below.
AcctContact.jsp ==>
<html:form action="AcctContact${contactType}Action">
.. . .
</html:form>
struts-config.xml ==>
<action path="/AcctContactBILAction"
type="com.factor8th.i5.AcctContactAction"
name="AcctContactBILForm"
scope="request"
validate="true"
input="/AcctContact.jsp">
.. . .
</action>
Error ==>
========================================================================
==
ERROR - ServletException in '/AcctContact.jsp': Cannot retrieve mapping
for action /AcctContactAction
javax.servlet.ServletException: Cannot retrieve mapping for action
/AcctContactAction
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:495)
at org.apache.jsp.AcctContact_jsp._jspService(AcctContact_jsp.java:245)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:92)
So contactType is empty or undefined, no? So it's not looking for the
mapping you've defined, AcctContactBILAction.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]