On Thursday 24 December 2009 16:52:35 Rafael Muneton wrote: > In a Web Application I need to redirect the flow of the information to a > Java class nor to a Servlet or a JSP. > > However in the web i have found a lot of material but none mentions what i > am looking for. > > How is this achieved?
When information are sent to the web server, they are always directed towards a Servlet, but it can be intercepted by a Filter or Listener. Even with JSP, we're talking about a Servlet that was created automatically by the container from the JSP page. AFAIK, these are the only classes that can interact *directly* with the web application. Then come the frameworks, which deliver a set of classes (again, Servlets, Filters, Listeners...) that abstract all the complexity for us and we can develop simpler classes that interact with the WebApp. But in reality, they are interacting with the classes the framework provides. With Struts2, you can create Actions, register them with the framework and they can receive the data directly from the web pages. Struts2 will automatically convert and inject them in the action's properties, given the rules have been followed correctly. I don't know if I understood your question right, so I don't know if I answered it well. Ciao, VĂtor Souza --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org