You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Denise <de...@densweb.com> on 2013/01/28 16:28:06 UTC

iframes with struts2

I'm migrating webapp from struts1 to struts2. On one of the screens the app
uses an iframe. The frame file is not recognizing any struts2 tags. The
taglib directive is present on all jsp files used for this iframe setup. I
have no problems referencing the struts2 tags in other areas of the app.

 

Has anyone come across this issue?

 

Here's a snippet of the code

<%@ taglib prefix="s" uri="/struts-tags" %>

...

<s:form method="post" style="height:0px;" id="subfundform">

    <s:if test="%{subFunds.isEmpty() != true}">

            <div class="subfundDD"
style="margin:0px;height:15px;padding-left:20px; float:left;">

                        TEST

                                    <s:select name="subFund" list="subFunds"
headerKey="0" headerValue="Full" listKey="subFund" listValue="subFundDesc"
onchange="document.getElementById('subfundform').submit();" />

                                    <input type="hidden" name="treeType"
value="<%=treeType%>"/>

                        </div>

    </s:if>

</s:form>

 

There are getters and setters for items referenced.

 

Regards

Denise

 


RE: iframes with struts2

Posted by Denise <de...@densweb.com>.
Thanks Dave for responding..

This piece of code should render a drop down box populated with values from
a hashmap set in the associated actionsupport class. I've also tested by
adding a simple s:property code at the top of the page and the page stops at
the first point where a struts tag is referenced.



-----Original Message-----
From: Dave Newton [mailto:davelnewton@gmail.com] 
Sent: Monday, January 28, 2013 10:37 AM
To: Struts Users Mailing List; denise.edwards@densweb.com
Subject: Re: iframes with struts2

On Mon, Jan 28, 2013 at 10:28 AM, Denise <de...@densweb.com> wrote:

> I'm migrating webapp from struts1 to struts2. On one of the screens the
app
> uses an iframe. The frame file is not recognizing any struts2 tags. The
> taglib directive is present on all jsp files used for this iframe setup. I
> have no problems referencing the struts2 tags in other areas of the app.
>
> Has anyone come across this issue?
>

What is rendering? Unprocessed JSP source?

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: iframes with struts2

Posted by Dave Newton <da...@gmail.com>.
On Mon, Jan 28, 2013 at 10:28 AM, Denise <de...@densweb.com> wrote:

> I'm migrating webapp from struts1 to struts2. On one of the screens the app
> uses an iframe. The frame file is not recognizing any struts2 tags. The
> taglib directive is present on all jsp files used for this iframe setup. I
> have no problems referencing the struts2 tags in other areas of the app.
>
> Has anyone come across this issue?
>

What is rendering? Unprocessed JSP source?

Dave