You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Affan Qureshi <qu...@etilize.com> on 2003/07/09 16:37:08 UTC

Include response in the JSP page

Hi,
I have a JSP page which needs to dynamically include response from actions
(or servlets) which are actually images streamed over the response. I tried
to use <jsp:include href="/someAction.do" /> but I guess it has some problem
for extensions other than jsp and html. (I saw a similar bug for Tomcat
bugzilla). I have tried to define a mime-type for 'do' in web.xml but does
not help. I guess I cannot use <bean:include > for the purpose.

Any suggestions?

Also another question, can I get request Attributes set in this page in the
action/servlet that I call thru <jsp:include />?


Thanks,
Affan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Re: Include response in the JSP page

Posted by Affan Qureshi <qu...@etilize.com>.
I can include the image response using simple <img
src="myAction.do?param=myparams"> which is the action that returns the image
response. But this causes a new request to be made on the server after the
html page is downloaded. This way I cannot access request variables etc.

Affan

"Affan Qureshi" <qu...@etilize.com> wrote in message
news:beh99g$e6n$1@main.gmane.org...
> Hi,
> I have a JSP page which needs to dynamically include response from actions
> (or servlets) which are actually images streamed over the response. I
tried
> to use <jsp:include href="/someAction.do" /> but I guess it has some
problem
> for extensions other than jsp and html. (I saw a similar bug for Tomcat
> bugzilla). I have tried to define a mime-type for 'do' in web.xml but does
> not help. I guess I cannot use <bean:include > for the purpose.
>
> Any suggestions?
>
> Also another question, can I get request Attributes set in this page in
the
> action/servlet that I call thru <jsp:include />?
>
>
> Thanks,
> Affan




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org