You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Rupinder Singh Mazara <rs...@ebi.ac.uk> on 2003/08/05 16:20:04 UTC

Newbie problem with
Hi All,

  I needed help in clarifying what the following line of code would mean to
a struts application

<bean:define  name="appContext" scope="session" type="logic.AppContext"
id="app2" toScope="session" />

a) Try to find a object of the type "logic.AppContext" in the session scope
called "appContext"
b) Name the instance retrieved as "app2"
c) If the object is not found create one and save it to the session scope
( toScope )

regards

Rupinder



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


RE: Newbie problem with Posted by Rupinder Singh Mazara <rs...@ebi.ac.uk>.
Thanks but read this already .... 

And No its not  a TEST Question , just trying to see if <bean:define ... 
Is can be used like <jsp:useBean ... 


Regards 

Rupinder 
-----Original Message-----
From: David Graham [mailto:grahamdavid1980@yahoo.com]
Sent: 05 August 2003 15:31
To: Struts Users Mailing List
Subject: Re: Newbie problem with <bean:define ...

This looks suspiciously like a test question.  I'll give you a hint:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

David

--- Rupinder Singh Mazara <rs...@ebi.ac.uk> wrote:
> Hi All,
>
>   I needed help in clarifying what the following line of code would mean
> to
> a struts application
>
> <bean:define  name="appContext" scope="session" type="logic.AppContext"
> id="app2" toScope="session" />
>
> a) Try to find a object of the type "logic.AppContext" in the session
> scope
> called "appContext"
> b) Name the instance retrieved as "app2"
> c) If the object is not found create one and save it to the session
> scope
> ( toScope )
>
> regards
>
> Rupinder
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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


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


Re: Newbie problem with Posted by David Graham <gr...@yahoo.com>.
This looks suspiciously like a test question.  I'll give you a hint:
http://jakarta.apache.org/struts/userGuide/struts-bean.html#define

David

--- Rupinder Singh Mazara <rs...@ebi.ac.uk> wrote:
> Hi All,
> 
>   I needed help in clarifying what the following line of code would mean
> to
> a struts application
> 
> <bean:define  name="appContext" scope="session" type="logic.AppContext"
> id="app2" toScope="session" />
> 
> a) Try to find a object of the type "logic.AppContext" in the session
> scope
> called "appContext"
> b) Name the instance retrieved as "app2"
> c) If the object is not found create one and save it to the session
> scope
> ( toScope )
> 
> regards
> 
> Rupinder
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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