• Post Reply Bookmark Topic Watch Topic
  • New Topic

Workaround is needed  RSS feed

Ludmila Snova
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 GetFile.do the request is passed to GetFileAction.java.

What I�d like to do is to add fake url (something.xml) instead of GetFile.do, for example. But I�d like that URL to be still processed by a GetFileAction.java 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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!