Thanks a lot using Div works for me...

-----Original Message-----
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 12:06 PM
To: Struts Users Mailing List
Subject: Re: Struts using iframes...


The trick with iFrames, or regular frames for that matter, is to realize
that what you are looking as it two separate browser windows.  Think of it
like tabs in Firefox... they are completely separate entities.

If I understand what your trying to do correctly, you want the checkboxes
submitted in the iFrame to appear in the checkboxes in the parent
documemt.  To do this you will need to submit in the iFrame, and then
refresh the parent.  But of course, this would only work if the form was
session-scoped.

I think there is a better answer though... simply use a <div> instead of
an iFrame.  To make it scroll like an iFrame, add:

style="overflow:scroll;"

...to the <div>.  You might want to set the value to auto instead of
scroll, which will only put scrollbars there if the content needs it. 
This will give you the srolling window you want, without the need for
frames, and things will work more "normally", as far as Struts goes.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: [EMAIL PROTECTED]

On Wed, December 21, 2005 10:23 am, Martin Gainty said:
> I thought you one had to specify the target attribute target="_self" along
> with attribute src="AssumeFullOrRelativeURI" to render within same page.
> Take a look at
> http://www.htmlhelp.com/reference/html40/special/a.html#target
> I am relatively certain this is O/T as it does not relate to struts but to
> implemention characteristics of iframe
> The more common way to include items as part of a form is to use OBJECT
> instead of iframe
> I would suggest looking at
> http://www.w3.org/TR/REC-html40/struct/objects.html#edef-OBJECT
> Anyone else?
> Martin-
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <user@struts.apache.org>
> Sent: Wednesday, December 21, 2005 8:21 AM
> Subject: Struts using iframes...
>
>
> Hi ,
> I am having problem populating the form with the selected checkboxes
> values.
> Tere is a parent (newclient.jsp) form.  This form makes a call to the
> iframes. like this
>
> <iframe src="<%= bodyHref1 %>" id="clientframe" frameborder="0"
> width="100%" height="180"
> scrolling="yes"></iframe>
>
> iframes src is pointing to another jsp( cleintChecked.jsp)  which has the
> html:checkboxes.
>
> Now when the user selcts the checkboxes and sumits the form, the
> checkboxes are not being populated.
>
> Since the checkboxes are in another jsp, the form is not being forwarded
> properly i guess,
>
> can some one suggest how to solve this population of checkboxes..
> i want to use only frames, because we want the ability to scroll the data
> in the frames...
>
> Any help much appreciated.
>
> Thanks.
>
>
> Visit our website at http://www.ubs.com
>
> This message contains confidential information and is intended only
> for the individual named.  If you are not the named addressee you
> should not disseminate, distribute or copy this e-mail.  Please
> notify the sender immediately by e-mail if you have received this
> e-mail by mistake and delete this e-mail from your system.
>
> E-mail transmission cannot be guaranteed to be secure or error-free
> as information could be intercepted, corrupted, lost, destroyed,
> arrive late or incomplete, or contain viruses.  The sender therefore
> does not accept liability for any errors or omissions in the contents
> of this message which arise as a result of e-mail transmission.  If
> verification is required please request a hard-copy version.  This
> message is provided for informational purposes and should not be
> construed as a solicitation or offer to buy or sell any securities or
> related financial instruments.
>
>
> ---------------------------------------------------------------------
> 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]


Visit our website at http://www.ubs.com

This message contains confidential information and is intended only
for the individual named.  If you are not the named addressee you
should not disseminate, distribute or copy this e-mail.  Please
notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free
as information could be intercepted, corrupted, lost, destroyed,
arrive late or incomplete, or contain viruses.  The sender therefore
does not accept liability for any errors or omissions in the contents
of this message which arise as a result of e-mail transmission.  If
verification is required please request a hard-copy version.  This
message is provided for informational purposes and should not be
construed as a solicitation or offer to buy or sell any securities or
related financial instruments.


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

Reply via email to