You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Yeo, Rodney W" <ro...@eds.com> on 2002/11/05 03:17:03 UTC

Application Scope

Hi,

Anyone knows how to retrieve information in the application scope within an
action form? Thanks.

Regards,
Rodney


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Application Scope

Posted by Andrew Hill <an...@gridnode.com>.
This also works for the Action class :-)

-----Original Message-----
From: Kris Schneider [mailto:kris@dotech.com]
Sent: Tuesday, November 05, 2002 10:59
To: Struts Users Mailing List
Subject: Re: Application Scope


getServlet().getServletContext()

"Yeo, Rodney W" wrote:
>
> Hi,
>
> Anyone knows how to retrieve information in the application scope within
an
> action form? Thanks.
>
> Regards,
> Rodney
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>

--
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Application Scope

Posted by Kris Schneider <kr...@dotech.com>.
getServlet().getServletContext()

"Yeo, Rodney W" wrote:
> 
> Hi,
> 
> Anyone knows how to retrieve information in the application scope within an
> action form? Thanks.
> 
> Regards,
> Rodney
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>

-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

RE: Application Scope

Posted by James Mitchell <jm...@telocity.com>.
Hmm.....after that comment I should have labeled this thread OT ;)

James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Sent: Monday, November 04, 2002 10:12 PM
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> Yes. Id have to agree with that.
> -but often its easier to just do it the 'quick' and naughty way ;-)
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchtx@telocity.com]
> Sent: Tuesday, November 05, 2002 11:07
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> I still don't see why you would need access.  Anything you need from the
> servletContext should be handled in your action (or biz tier),
> but not your
> form bean.
>
> I believe Craig mentioned something about this in an earlier message, but
> I'm not having any luck with the mail-archive search.
>
>
>
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "Only two things are infinite, the universe and human stupidity,
> and I'm not
> sure about the former."
> - Albert Einstein (1879-1955)
>
>
> > -----Original Message-----
> > From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> > Sent: Monday, November 04, 2002 9:46 PM
> > To: Struts Users Mailing List
> > Subject: RE: Application Scope
> >
> >
> > Maybe the info he wants to retrieve is config info that affects his
> > validation in some way....
> >
> > -----Original Message-----
> > From: James Mitchell [mailto:jmitchtx@telocity.com]
> > Sent: Tuesday, November 05, 2002 10:47
> > To: Struts Users Mailing List
> > Subject: RE: Application Scope
> >
> >
> > Why would you need this in an action form?
> >
> >
> > James Mitchell
> > Software Engineer/Struts Evangelist
> > http://www.open-tools.org
> >
> > "Only two things are infinite, the universe and human stupidity,
> > and I'm not
> > sure about the former."
> > - Albert Einstein (1879-1955)
> >
> >
> > > -----Original Message-----
> > > From: Yeo, Rodney W [mailto:rodney.yeo@eds.com]
> > > Sent: Monday, November 04, 2002 9:17 PM
> > > To: 'Struts Users Mailing List (E-mail)'
> > > Subject: Application Scope
> > >
> > >
> > > Hi,
> > >
> > > Anyone knows how to retrieve information in the application scope
> > > within an
> > > action form? Thanks.
> > >
> > > Regards,
> > > Rodney
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > > <ma...@jakarta.apache.org>
> > > For additional commands, e-mail:
> > > <ma...@jakarta.apache.org>
> > >
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Application Scope

Posted by Andrew Hill <an...@gridnode.com>.
Yes. Id have to agree with that.
-but often its easier to just do it the 'quick' and naughty way ;-)

-----Original Message-----
From: James Mitchell [mailto:jmitchtx@telocity.com]
Sent: Tuesday, November 05, 2002 11:07
To: Struts Users Mailing List
Subject: RE: Application Scope


I still don't see why you would need access.  Anything you need from the
servletContext should be handled in your action (or biz tier), but not your
form bean.

I believe Craig mentioned something about this in an earlier message, but
I'm not having any luck with the mail-archive search.



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Sent: Monday, November 04, 2002 9:46 PM
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> Maybe the info he wants to retrieve is config info that affects his
> validation in some way....
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchtx@telocity.com]
> Sent: Tuesday, November 05, 2002 10:47
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> Why would you need this in an action form?
>
>
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "Only two things are infinite, the universe and human stupidity,
> and I'm not
> sure about the former."
> - Albert Einstein (1879-1955)
>
>
> > -----Original Message-----
> > From: Yeo, Rodney W [mailto:rodney.yeo@eds.com]
> > Sent: Monday, November 04, 2002 9:17 PM
> > To: 'Struts Users Mailing List (E-mail)'
> > Subject: Application Scope
> >
> >
> > Hi,
> >
> > Anyone knows how to retrieve information in the application scope
> > within an
> > action form? Thanks.
> >
> > Regards,
> > Rodney
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Application Scope

Posted by James Mitchell <jm...@telocity.com>.
I still don't see why you would need access.  Anything you need from the
servletContext should be handled in your action (or biz tier), but not your
form bean.

I believe Craig mentioned something about this in an earlier message, but
I'm not having any luck with the mail-archive search.



James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Andrew Hill [mailto:andrew.david.hill@gridnode.com]
> Sent: Monday, November 04, 2002 9:46 PM
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> Maybe the info he wants to retrieve is config info that affects his
> validation in some way....
>
> -----Original Message-----
> From: James Mitchell [mailto:jmitchtx@telocity.com]
> Sent: Tuesday, November 05, 2002 10:47
> To: Struts Users Mailing List
> Subject: RE: Application Scope
>
>
> Why would you need this in an action form?
>
>
> James Mitchell
> Software Engineer/Struts Evangelist
> http://www.open-tools.org
>
> "Only two things are infinite, the universe and human stupidity,
> and I'm not
> sure about the former."
> - Albert Einstein (1879-1955)
>
>
> > -----Original Message-----
> > From: Yeo, Rodney W [mailto:rodney.yeo@eds.com]
> > Sent: Monday, November 04, 2002 9:17 PM
> > To: 'Struts Users Mailing List (E-mail)'
> > Subject: Application Scope
> >
> >
> > Hi,
> >
> > Anyone knows how to retrieve information in the application scope
> > within an
> > action form? Thanks.
> >
> > Regards,
> > Rodney
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> > <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Application Scope

Posted by Andrew Hill <an...@gridnode.com>.
Maybe the info he wants to retrieve is config info that affects his
validation in some way....

-----Original Message-----
From: James Mitchell [mailto:jmitchtx@telocity.com]
Sent: Tuesday, November 05, 2002 10:47
To: Struts Users Mailing List
Subject: RE: Application Scope


Why would you need this in an action form?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Yeo, Rodney W [mailto:rodney.yeo@eds.com]
> Sent: Monday, November 04, 2002 9:17 PM
> To: 'Struts Users Mailing List (E-mail)'
> Subject: Application Scope
>
>
> Hi,
>
> Anyone knows how to retrieve information in the application scope
> within an
> action form? Thanks.
>
> Regards,
> Rodney
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


RE: Application Scope

Posted by James Mitchell <jm...@telocity.com>.
Why would you need this in an action form?


James Mitchell
Software Engineer/Struts Evangelist
http://www.open-tools.org

"Only two things are infinite, the universe and human stupidity, and I'm not
sure about the former."
- Albert Einstein (1879-1955)


> -----Original Message-----
> From: Yeo, Rodney W [mailto:rodney.yeo@eds.com]
> Sent: Monday, November 04, 2002 9:17 PM
> To: 'Struts Users Mailing List (E-mail)'
> Subject: Application Scope
>
>
> Hi,
>
> Anyone knows how to retrieve information in the application scope
> within an
> action form? Thanks.
>
> Regards,
> Rodney
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>