Re: TagSupport - how to get request attribute

2005-11-04 Thread Martin Gainty

Andrei-

This is straight from the doc!
*This assumes you have configured your backing bean*

 * @param pageContext Page context to be searched
954  * @param name Name of the bean to be retrieved
955  * @param scopeName Scope to be searched (page, request, session, 
application)

956  *  or null to use findAttribute() instead
957  * @return JavaBean in the specified page context
958  * @exception JspException if an invalid scope name
959  *  is requested
960  */
961 public Object lookup(PageContext pageContext, String name, String 
scopeName)


dobranoc,
Martin-

- Original Message - 
From: "Andrzej Bengner" <[EMAIL PROTECTED]>

To: 
Sent: Friday, November 04, 2005 6:25 AM
Subject: TagSupport - how to get request attribute



Hello,

I have one problem with access to attribute in request in my class from 
TagSupport.
I send GET to my site (eg. http://localhost/app/site.jsp?Test=value). How 
to get this "Test" attribute in my class?


I tried:

TagUtils.getInstance().lookup(pageContext,"Test", null);
pageContext.findAttribute("Test");

ServletRequest request = pageContext.getRequest();
request.getAttribute("Test");

... and all of this returns null.

Regards

--
Andy


-
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]



Re: TagSupport - how to get request attribute

2005-11-04 Thread Xavier Vanderstukken

${request['ParameterName']}

Andrzej Bengner wrote:


try request.getParameter(ParameterName);



Thanks, that's OK :-)

-
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]



Re: TagSupport - how to get request attribute

2005-11-04 Thread Andrzej Bengner

try request.getParameter(ParameterName);


Thanks, that's OK :-)

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: TagSupport - how to get request attribute

2005-11-04 Thread Vishal Dalal

try request.getParameter(ParameterName);

-Original Message-
From: Andrzej Bengner [mailto:[EMAIL PROTECTED]
Sent: Friday, November 04, 2005 4:56 PM
To: user@struts.apache.org
Subject: TagSupport - how to get request attribute


Hello,

I have one problem with access to attribute in request in my class from 
TagSupport.
I send GET to my site (eg. http://localhost/app/site.jsp?Test=value). 
How to get this "Test" attribute in my class?

I tried:

TagUtils.getInstance().lookup(pageContext,"Test", null);
pageContext.findAttribute("Test");

ServletRequest request = pageContext.getRequest();
request.getAttribute("Test");

... and all of this returns null.

Regards

-- 
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Make your callers hear anything you like.Call 456 say DIALER TONES.

An idea can change your life. 

** LEGAL DISCLAIMER 
This E-Mail may contain Confidential and/or legally privileged Information and 
is meant for the intended recipient(s) only. If you have received this e-mail 
in error and are not the intended recipient/s, kindly notify us at [EMAIL 
PROTECTED] and then delete this e-mail immediately from your system. You are 
also hereby notified that any use, any form of reproduction, dissemination, 
copying, disclosure, modification, distribution and/or publication of this 
e-mail, its contents or its attachment/s other than by its intended recipient/s 
is strictly prohibited and may be unlawful.

Internet Communications cannot be guaranteed to be secure or error-free as 
information could be delayed, intercepted, corrupted, lost, or contain viruses. 
IDEA Cellular Limited does not accept any liability for any errors, omissions, 
viruses or computer problems experienced by any recipient as a result of this 
e-mail.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TagSupport - how to get request attribute

2005-11-04 Thread Andrzej Bengner

Hello,

I have one problem with access to attribute in request in my class from 
TagSupport.
I send GET to my site (eg. http://localhost/app/site.jsp?Test=value). 
How to get this "Test" attribute in my class?


I tried:

TagUtils.getInstance().lookup(pageContext,"Test", null);
pageContext.findAttribute("Test");

ServletRequest request = pageContext.getRequest();
request.getAttribute("Test");

... and all of this returns null.

Regards

--
Andy


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]