You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Taylor, Jason" <jt...@cobaltgroup.com> on 2003/02/04 04:29:26 UTC
Strange question: tag acting as ActionServlet?
I'm trying to migrate a large application to vanilla struts but I'm getting
resistance to the idea of using the ActionServlet because there are many
references to "*.jsp" in the codebase and there's a feeling that migrating
things to "*.do" is too radical. I've tried overriding the servlet mapping
so that *.jsp are handled by the ActionServlet and it seems the .jsp
extension is reserved for (guess what) JSP files.
Therefore, I'm thinking about writing/finding a single custom tag that will
act like the ActionServlet (i.e., read a config file and route traffic to
Action classes which populate the request/session/context objects). Is this
crazy or has someone tried this? I'm not saying it's good form, but my
hands are rather tied, and I'd like to be able to use as much of the struts
framework as possible. It seems a rather simple idea, though, to have a tag
act as the controller, and I don't see why it would be impossible. Any
thoughts?