Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dynamically including content containing struts tags within a JSP

843838Jan 14 2006 — edited Jan 18 2006
Hi,

I have a problem rendering struts tags on a JSP.

I need to include the dynamic content (containing struts tags) generated by a servlet, within a jsp page and rendered properly.


test.jsp
=================
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld " prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<body>
<html:form method="POST" action="/myaction"> 

<jsp:include page="/transform" flush="false"/>

</html:form>
</body>
</html:html>
where /transform invokes a servlet that generates content in text/html containing struts tags using xsl transformation.


However, in the resulting page the strut tags from the servlet are rendered as is and not converted into the respective html tags. It works fine if the contents had only html tags and not any struts tags. I understand that the page translation of test.jsp is already complete before the dynamic content is included within the page, causing the struts tags to be rendered as is. Is there a work around?

Does the idea make sense in the first place and if yes could someone let me know how this can be achieved?

Regards


S John
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2006
Added on Jan 14 2006
6 comments
291 views