File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Workaround is needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Workaround is needed" Watch "Workaround is needed" New topic

Workaround is needed

Ludmila Snova

Joined: Aug 31, 2006
Posts: 20
Workaround is needed


I use the STRUTS framework and my current the web.xml looks like this:




Where the action.MyActionServlet class is extended from org.apache.struts.action.ActionServlet. SO, all requests that ended with .do first of all go to that class, and when, depending on the action in URL passed to actual action class for this request.

For example, if URL is the request is passed to

What I�d like to do is to add fake url (something.xml) instead of, for example. But I�d like that URL to be still processed by a servlet.

Is there any easy way to do? Or I have to do some struts source code modification for my fake URL? Is so, could you please tell me, which class and method in struts decide which action should be invoked.

subject: Workaround is needed
Similar Threads
How is the HTML form action created from servlet-mapping url-pattern?
Blank page returned when filters are used with struts
Using servlets params from filters
Struts jsps in WEB-INF
Filter Mappings - URL Pattern