I've found another way on http://tapestry.apache.org/tapestry4/tapestry-portlet/coding-issues.html : @InjectObject("infrastructure:request") public abstract WebRequest getHttpServletRequest();
At this page wrotten: This object is API neutral So, as I think, it's a best way, because I'm incapsulating HttpServletRequest in WebRequest "Jim Steinberger" <[EMAIL PROTECTED]> wrote on 11.07.2006 19:06:29: > If you absolutely need access to the servlet API, and can't find a way > to do what you want that is more "Tapestry-ish," you can inject certain > service-objects into your page. Here are the relevant HiveMind service > points: > http://tapestry.apache.org/tapestry4/tapestry-annotations/hivedocs/modul > e/tapestry.globals.html > > > So, for example, in your case, you need access to the HttpServletRequest > functionality. Two options: you could inject the HttpServletRequest > directly into your page: > > @InjectObject("service:tapestry.globals.HttpServletRequest") > public abstract HttpServletRequest getRequest(); > > Or you could use the Tapestry wrapper/abstraction class: > > @InjectObject("service:tapestry.globals.WebRequest") > public abstract WebRequest getRequest(); > > In both cases, you'll be able to access the request parameters as you're > used to (e.g. ... String param1 = getRequest().getParameter("param1"); > ...) > > > This is assuming, though, that your users know enough about how Tapestry > URLs are structured so that they're getting to the page you intend, > which is tricky, error-prone, a security-risk, and technically locks > your application into a specific version of Tapestry, since a future of > Tapestry could very well structure those URLs very differently. > > Jim > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 11, 2006 11:25 AM > To: users@tapestry.apache.org > Subject: How can I access request parameters in my page class? > > > Good day! I have tapestry application. I want users enter in browser > http://mycompany.com/mytapestryapp?param1=test, and my page class > receive > value "test" in it's property param1. > > So, my question is: how can I access request parameters in my page > class? > > Thanks! > > With best regards, > Vitaly Baranovsky > > P.S.: Sorry for my bad English > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]