You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Scott Nesbitt <sc...@yahoo.com> on 2007/05/24 22:39:49 UTC

S2: cannot access bean from dialog

This is working fine in my main JSP:

<s:hidden id="selectedCallLetters" 
        name="selectedCallLetters" 
      
value="%{userDetailsBean.selectedCallLetters}"/>

However, when I call a dialog like this:

window.open('overlay-headends.jsp');

This JSP cannot access the fields in the
userDetailsBean in the main JSP.

Any ideas?  The userDetailsBean is a session
attribute.

Thanks,

Scott


       
____________________________________________________________________________________Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/

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


Re: S2: cannot access bean from dialog

Posted by Scott Nesbitt <sc...@yahoo.com>.
Thanks for the response.  I guess we will have to call
another action.

Scott

--- Don Brown <do...@gmail.com> wrote:

> Those objects will only be accessible if the JSP is
> "front-ended" by
> an action.  By this, I mean that the request is for
> an action, which
> executes said Action, then forwards to a JSP.  If
> you have the browser
> access the JSP directly, it won't be available.
> 
> Don
> 
> On 5/25/07, Scott Nesbitt <sc...@yahoo.com>
> wrote:
> >
> > This is working fine in my main JSP:
> >
> > <s:hidden id="selectedCallLetters"
> >         name="selectedCallLetters"
> >
> > value="%{userDetailsBean.selectedCallLetters}"/>
> >
> > However, when I call a dialog like this:
> >
> > window.open('overlay-headends.jsp');
> >
> > This JSP cannot access the fields in the
> > userDetailsBean in the main JSP.
> >
> > Any ideas?  The userDetailsBean is a session
> > attribute.
> >
> > Thanks,
> >
> > Scott
> >
> >
> >
> >
>
____________________________________________________________________________________Looking
> for a deal? Find great prices on flights and hotels
> with Yahoo! FareChase.
> > http://farechase.yahoo.com/
> >
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> > For additional commands, e-mail:
> user-help@struts.apache.org
> >
> >
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> user-unsubscribe@struts.apache.org
> For additional commands, e-mail:
> user-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________Shape Yahoo! in your own image.  Join our Network Research Panel today!   http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 



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


Re: S2: cannot access bean from dialog

Posted by Don Brown <do...@gmail.com>.
Those objects will only be accessible if the JSP is "front-ended" by
an action.  By this, I mean that the request is for an action, which
executes said Action, then forwards to a JSP.  If you have the browser
access the JSP directly, it won't be available.

Don

On 5/25/07, Scott Nesbitt <sc...@yahoo.com> wrote:
>
> This is working fine in my main JSP:
>
> <s:hidden id="selectedCallLetters"
>         name="selectedCallLetters"
>
> value="%{userDetailsBean.selectedCallLetters}"/>
>
> However, when I call a dialog like this:
>
> window.open('overlay-headends.jsp');
>
> This JSP cannot access the fields in the
> userDetailsBean in the main JSP.
>
> Any ideas?  The userDetailsBean is a session
> attribute.
>
> Thanks,
>
> Scott
>
>
>
> ____________________________________________________________________________________Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
> http://farechase.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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