Hi, the Inject annotation moved to the tapestry-ioc project starting from 5.0.6, maybe you cloud try adding this to your pom.xml?
<dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-ioc</artifactId> <version>5.0.6</version> </dependency> James Lin-3 wrote: > > thanks your quick reply! > I could import org.apache.tapestry.services.RequestGlobals > But I don't have org.apache.tapestry.annotations.Inject > I have search all jar file to find this Inject class,but I could not find > it anywhere > ps. My tapestry version is 5.0.6(before last week I use 5.0.5) > > James >> Date: Sun, 28 Oct 2007 07:04:36 -0700 >> From: [EMAIL PROTECTED] >> To: users@tapestry.apache.org >> Subject: Re: How do I get parameter from URL in Tapestry 5 ? >> >> >> do you have these lines in the code: >> >> import org.apache.tapestry.services.RequestGlobals; >> import org.apache.tapestry.annotations.Inject; >> >> >> James Lin-3 wrote: >> > >> > dear all: >> > >> > I have read one sample from Tapestry website >> > http://wiki.apache.org/tapestry/Tapestry5ObtainingHttpServletRequest >> > >> > @Inject >> > private RequestGlobals requestGlobals; >> > >> > public void onActivate(Object context) { >> > HttpSession session = >> > requestGlobals.getHTTPServletRequest().getSession(); >> > ... >> > } >> > >> > But I got problem comping this code for line @Inject >> > I thought Tapestry 5 should have a regular,simple way to retrieve it >> > >> > Thanks in advance! >> > >> > James >> > >> > _________________________________________________________________ >> > Boo! Scare away worms, viruses and so much more! Try Windows Live >> OneCare! >> > >> http://onecare.live.com/standard/en-us/purchase/trial.aspx?s_cid=wl_hotmailnews >> > >> >> -- >> View this message in context: >> http://www.nabble.com/How-do-I-get-parameter-from-URL-in-Tapestry-5---tf4706868.html#a13453670 >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > _________________________________________________________________ > Climb to the top of the charts! Play Star Shuffle: the word scramble > challenge with star power. > http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct > -- View this message in context: http://www.nabble.com/How-do-I-get-parameter-from-URL-in-Tapestry-5---tf4706868.html#a13454285 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]