aspose file tools*
The moose likes Struts and the fly likes passing html tags through tile Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "passing html tags through tile" Watch "passing html tags through tile" New topic
Author

passing html tags through tile

Sam Cox
Greenhorn

Joined: Feb 03, 2004
Posts: 4
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

Joined: Jan 10, 2002
Posts: 61603
    
  67

Being that the tiles mechanism is a Struts thing... off to the Struts forum with you!


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Sam Cox
Greenhorn

Joined: Feb 03, 2004
Posts: 4
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: passing html tags through tile