Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

passing html tags through tile

 
Sam Cox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I want to simply pass the tag,
<form name=....> through to a <tile:insert attribute='form'/>
How could I do this?
I need to dynamically assign this form based on user position in my website. I'm doing this:
<tiles:insert page="/common/form.jsp" flush="true">
<tiles ut name="form">
<form name="....>
</tiles ut>
</tiles:insert>
which gets sent to form.jsp:
<%@ taglib uri="struts-bean" prefix="bean" %>
<%@ taglib uri="struts-logic" prefix="logic" %>
<%@ taglib uri="struts-tiles" prefix="tiles" %>
<%-- Push component attributes in page context --%>
<tiles:importAttribute />
<logic resent name="form">
<bean:write name="form"/>
</logic resent>
which then goes to: <tiles:insert attribute='form'> where form is defined to be form.jsp. The problem is that it's translating it into the string necessary to display it on the webpage:
<form name="....
Any help is appreciated.
[ March 30, 2004: Message edited by: Sam Cox ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64830
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Being that the tiles mechanism is a Struts thing... off to the Struts forum with you!
 
Sam Cox
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Found answer. Simply needed to use filter="false" on the bean:write tag.
Btw, I'm trying to accomplish the submission of a form from different tiles. My solution is not very nice to say the least. If anyone knows of a good way or has a link to a good way, please let me know. I saw the posts here on this topic, but they didn't help me much.
Thanks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic