I created a Jira issue with a patch to the ServletDispatcher that allows you
to use either form of action (".do" or "/do/").  The problem is due to the
servlet dispatcher using the servlet_path rather than the request_uri.  This
should fix it...

http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-394

John

----- Original Message ----- 
From: "Mark Woon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 30, 2003 5:57 AM
Subject: [OS-webwork] [WebWork2] Servlet mapping question


> Hi all.
>
> I'm trying to migrate from Struts to WebWork2 and I've run into a slight
> snag.  In Struts, I have the ActionServlet mapped to /do/* (instead of
> the usual *.do).  I'd like to do the same with WebWork.  Instead of
> mapping the ServletDispatcher to *.action, I'd like to map it to /do/*
> as well.  I tried
>
>   <servlet-mapping>
>     <servlet-name>webwork</servlet-name>
>     <url-pattern>/ww/*</url-pattern>
>   </servlet-mapping>
>
> Unfortunately, this doesn't seem to work.  I'm getting "There is no
> Action mapped for action name do".  Is this not an expected use case?
>
> By the by, I checked out the source via CVS to see what was going on,
> but that only lead to more problems.  Is the webworks2 CVS HEAD not
> stable?  It looks like webwork-default.xml has disappeared, along with
> other problems...
>
> Any pointers would be greatly appreciated.
>
> Thanks,
> -Mark
>
> P/S - I'm playing with WebWork 2b2.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to