> hi Guys,
> 
> I bet this has come up before...
> 
> I need to include the output of an action in a jsp, using the jsp:include
> tag lie this:
> 
> <jsp:include page="/myAction.do" flush="true">
> <jsp:param name="USERID" value="CARLOSUS" />
> </jsp:include>
> 
> but I get an illegalstate exception, as the ActionServlet forwards instead
> of includes...
> 
> is there anyway to do this???
> 
> thanks


I've found one workaround which can help in some situations:

make the Action.perform return null.

include the view (JSP) then.

So it could look like this:

<jsp:include page="/myAction.do" flush="true">
<jsp:param name="USERID" value="CARLOSUS" />
</jsp:include>
<jsp:include page="/myAction.jsp" flush="true" />


But it is ugly indeed.

--
gR




Reply via email to