Having looked at the source code for the FormTag it appears that there is no
way to use it with an ActionMapping whose path contains a forward-slash
(other than at the start) because everything before the last one is removed
before looking up the ActionMapping. Why is this? It doesn't seem to me to
be the correct thing to do. 

> -----Original Message-----
> From: Howard Moore 
> Sent: 22 January 2001 17:40
> To: [EMAIL PROTECTED]
> Subject: FormTag problem
> 
> 
> I have the following action configured in my struts-config.xml file;
> 
>     <action    path="/admin/login"
>                type="com.datapulse.views.admin.LoginAction"
>                name="userActionForm"
>                scope="request"
>                input="/jsp/admin/login.jsp">
>     </action>
> 
> and am trying to link to it from a jsp page using the FormTag.
> 
> I expected the following to work;
> 
>     <html:form action="/admin/login.do" scope="request">
> 
> but it throws a ServletException with the message; 
> 
>     Cannot retrieve mapping for specified form action path "/login"
> 
> It appears that the path ("/admin") part of the action is 
> being stripped
> before looking up the mapping. Should this really be done 
> and, if so, how
> can I create a FormTag to call my Action?
> 
> Help would be appreciated.
> 
> -------------------------------------------
> Howard Moore
> Senior Software Engineer
> Datapulse CTI
> Tel : +44 (0)1491 418000
> Fax : +44 (0)1491 411459
> E-mail: [EMAIL PROTECTED]
> 

Reply via email to