i need to include the content from two different action classes in a jsp page . <html> <head><title>An Include Test</title></head> <body bgcolor="white"> <font color="blue"> The current date and time are <%@ include file="http://host1:9080/example1.do" %> <%@ include file="http://host2:9080/example2.do" %>
</html> can any one guide me in this regard thanks in advance
Without knowing what the action does, it's impossible to say for sure. But the usual suspects for this type of problem are trying to forward or redirect after some output has been emitted, or trying to emit output after a forward or redirect.
Why are you doing things this way in the first place? It's rather messy. Rather, factor out the functionality you want for the action and put it in a custom tag rather than trying to include an entire servlet/action.