If you are in a time crunch for an answer, you could always load the
resourceAsStream "/WEB-INF/web.xml" with a SAX parser, first findi your
servlet name, and then iterate through the mappings to match the servlet
name so you can obtain the mapping.   Personally, I tried to discover the
same thing with Struts about two years ago but never found a way other than
the above method.

Regards,
David

-----Original Message-----
From: Paul Benedict [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 19, 2006 11:49 PM
To: user@struts.apache.org
Subject: Struts URL Pattern


Does anyone know how to get the Struts servlet pattern at runtime? I want to
get what the servlet is mapped for, like *.do or /do/, etc.

Paul


---------------------------------
Do you Yahoo!?
 Next-gen email? Have it all with the  all-new Yahoo! Mail Beta.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to