You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Lin <in...@hotmail.com> on 2007/10/28 13:42:54 UTC
How do I get parameter from URL in Tapestry 5 ?
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
_________________________________________________________________
Windows Live Hotmail and Microsoft Office Outlook – together at last. Get it now.
http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033
Re: How do I get parameter from URL in Tapestry 5 ?
Posted by Davor Hrg <hr...@gmail.com>.
no need to change your pom,
just remove the import statement,
and import the Inject annottation from tapestry ioc
Eclipse: CTRL+SHIFT+O
Davor Hrg
On 10/28/07, James Lin <in...@hotmail.com> 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
>
>
>
> _________________________________________________________________
> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get
> it now.
>
> http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033