Hi,


I don't really understand what you are trying to do ;-).

Can't you pass your apps attribute as a simple attribute (<put name="apps" .../>) instead of as a list (<putList name="apps" ><add value=""/> ...) ?

Cedric

Jean Mercier wrote:

Thanks for replying Cedric,

I've created a scriptlet that removes the offending characters I'm able to
pass request.getContextPath correctly but try as I might I can't get
<tiles:getAsString name="apps"/> to be resolved and passed as
"/carosys/logon/logonApp.jsp" when sent to the scriplet.  At best I pass
<tiles:getAsString name="apps"/> as a string.  Is there something like
eval() that I can use?

Thanks in advance,

Jean


-----Original Message-----
From: Cedric Dumoulin [mailto:[EMAIL PROTECTED] Sent: February 26, 2003 3:48 AM
To: Struts Users Mailing List
Subject: Re: Frames and the Tile PutList



Hi,


The extra '[' ']' are there because you declare the apps attribute as a list. You should either declare it as a normal attribute (<put .../>), or use an index to peek up the appropriate element in the list (not supported by getAsString or get or insert, you should get the list and use a scriptlet).

Cedric

Jean Mercier wrote:



Hi All,

I searched the archive and I have not found a solution to this problem. I
unfortunately am required to use frames so when I attempt to use putlist to
extend my tiles definition, I get
"/BrokerPortalWeb[/carosys/logon/logonApp.jsp]" when I would like to get
"/BrokerPortalWeb/carosys/logon/logonApp.jsp" is there a way around this.


I submit my definition and results.

I've defined my tiles in tiles-config.xml

<definition name="layout.notree.frame"
path="/carosys/templateNoTreeFrame.jsp">
        <put name="popupscript" value="/carosys/popupjs.jsp"
direct="true"/>
        <put name="banner" value="/carosys/cmon/cmonBanner.jsp"
direct="true" />
        <put name="navigation" value="/carosys/cmon/cmonBlankNvgt.jsp"
direct="true" />
        <put name="footer" value="/carosys/cmon/cmonFooter.jsp"
direct="true" />
        <putList name="apps" />
</definition>
<definition name="logonFrame" extends="layout.notree.frame">
        <putList name="apps">
                <add value="/carosys/logon/logonApp.jsp"/>
        </putList>
</definition>

and carosys/templateNoTreeFrame.jsp is defined as
<frameset rows="50,25, *,10" >
<frame src="<%=request.getContextPath()%><tiles:getAsString name="banner"
/>" name="banner" >
<frame src="<%=request.getContextPath()%><tiles:getAsString
name="navigation" />" name="navigation" >
<frame src="<%=request.getContextPath()%><tiles:getAsString name="apps"
/>" name="apps" >
<frame src="<%=request.getContextPath()%><tiles:getAsString name="footer"
/>" name="footer" >
</frameset>
When forward to logonFrame the following is rendered all except apps comes
back fine

<frameset rows="50,25, *,10" >
<frame src="/BrokerPortalWeb/carosys/cmon/cmonBanner.jsp" name="banner" >
<frame src="/BrokerPortalWeb/carosys/cmon/cmonBlankNvgt.jsp"
name="navigation" >
<frame src="/BrokerPortalWeb[/carosys/logon/logonApp.jsp]" name="apps" >
<frame src="/BrokerPortalWeb/carosys/cmon/cmonFooter.jsp" name="footer" >
</frameset>

Regards,

Jean Mercier





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to