Hi Antonio,
Sorry for not giving much information.
my tiles-def entry looks like this:
<definition name="contactHrBaseDef"
path="/tiles/layout.jsp?PAGEID=CONTACTHR">
<put name="header" value="/tiles/header.jsp?PAGEID=USERHOME" />
<put name="menu" value="/tiles/menu.jsp?PAGEID=CONTACTHR" />
<put name="quickLinks" value="/tiles/quickLinks.jsp" />
<put name="bottomFooter" value="/tiles/bottomFooter.jsp" />
</definition>
<definition name="contactHrNewDef" extends="contactHrBaseDef" >
<put name="contents" value="/new/contactHrC.jsp" />
</definition>
So it is the actual jsp content that i am trying to insert.
Hope this clarifies.
When i use tiles:getAsString in the layout.jsp, jsps which render plain text
works fine. But if a page is defined with form variables defined in
struts-config as DynaActionForm,
<%
DynaActionForm form
=((DynaActionForm)request.getAttribute("contactHrForm"));
%>
the form object returned from above line in my jsp is null. Also I seem to
have problems in the rendereing of the logic:equal and html:select tags
throught my jsp.
I have included the following in my jsp.
<%@ 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" %>
<%@ taglib uri="/WEB-INF/srutus-tiles.tld" prefix="tiles" %>
Also I have entries in my web.xml to map these entries.
Please bear with me and ask more details if you need. I need a solution very
urgently.
thanks
Nags.
Antonio Petrelli-3 wrote:
>
> 2007/12/10, NagsNags <[EMAIL PROTECTED]>:
>> <iframe name="mainWindow" id="bodyframe" width="100%"
>> src="<%=request.getContextPath()%><tiles:getAsString name='contents'/>"
>> scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
>> vspace="0"
>> hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
>>
>> With this code, I was loosing the form attributes whenever I try to
>> render a
>> page with form variables. Plain text pages renders properly.
>> DynaActionForm
>> object itself was set to null if I use this.
>>
>> So I tried using tiles:insert inside iframe like this,
>>
>> <iframe name="mainWindow" id="bodyframe" width="100%"
>> src="<%=request.getContextPath()%><tiles:insert name='contents'/>"
>> scrolling="no" marginwidth="0" marginheight="0" frameborder="0"
>> vspace="0"
>> hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
>>
>> Now the actual content's source code is getting inserted into src=" " and
>> the page is not rendered.
>
> The question is: what does this "contents" attribute contain?
>
> Ciao
> Antonio
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/tiles%3Ainsert-instead-of-tiles%3AgetAsString%28%29-creates-problems.-tp14259147p14263720.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]