You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jose María <jo...@fundacionctic.org> on 2005/06/21 08:54:42 UTC

Re: How to pass Jstl param implicit Object to html:link

Hi, I think that I do not explained too good.
My idea is pass a Map with multiple keys and values, the html:link
documentation says that you can pass multiple params to an action with a
Map Object in name attribute.

I want to pass the object implicit "param" (Map) defined in Jstl, but I
obtain the error "Can not find bean in any scope".

Well, nothing else, if anyone knows how to do it, please response.

Sample:

http://url/action/show?date=????&type=????

I want to pass this parameters to other action:

<html:link action="/other" name="${param}">
 ...
</html:link>



Thank you in advance¡¡






-- 

**********************************************************
Jose María Alvarez Rodriguez
Departamento de I+D+I
Fundación CTIC 
-Centro Tecnológico de la Información y la Comunicación-
E-mail: josem.alvarez@fundacionctic.org

Tfno: +34 984 29 12 12

Parque Científico Tecnológico Gijón-Asturias-Spain
www.fundacionctic.org

********************************************************


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


Re: How to pass Jstl param implicit Object to html:link

Posted by Jose María <jo...@fundacionctic.org>.
Hi, Thanks for your replies but I have not get pass the Map to action,
if have you any suggestion to re pass current parameters to another
action in the same jsp, please send me.

Thank you in advance¡¡

El mar, 21-06-2005 a las 12:48 -0400, Laurie Harper escribió:
> 'params' is a JSTL implicit object; I don't think it's required to be 
> bound to a bean in any scope. Also, the 'name' attribute is looking for 
> the name of a bean, not a value.
> 
> You'll need to bind the request parameter map to a name in some scope 
> first I think, something like:
> 
> <bean:define name="rps" value="${params}"/>
> <html:link ... name="rps">
> 
> (not tested)
> 
> L.
> 
> Jose María wrote:
> 
> > Hi, I think that I do not explained too good.
> > My idea is pass a Map with multiple keys and values, the html:link
> > documentation says that you can pass multiple params to an action with a
> > Map Object in name attribute.
> > 
> > I want to pass the object implicit "param" (Map) defined in Jstl, but I
> > obtain the error "Can not find bean in any scope".
> > 
> > Well, nothing else, if anyone knows how to do it, please response.
> > 
> > Sample:
> > 
> > http://url/action/show?date=????&type=????
> > 
> > I want to pass this parameters to other action:
> > 
> > <html:link action="/other" name="${param}">
> >  ...
> > </html:link>
> > 
> > 
> > 
> > Thank you in advance¡¡
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

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


Re: How to pass Jstl param implicit Object to html:link

Posted by Laurie Harper <la...@holoweb.net>.
It is, by definition (at least in a JSTL aware environment).

L.

Zarar Siddiqi wrote:

> Make sure params is of type java.util.Map.
> 
> 
> ----- Original Message ----- From: "Laurie Harper" <la...@holoweb.net>
> To: <us...@struts.apache.org>
> Sent: Tuesday, June 21, 2005 12:48 PM
> Subject: Re: How to pass Jstl param implicit Object to html:link
> 
> 
>> 'params' is a JSTL implicit object; I don't think it's required to be 
>> bound to a bean in any scope. Also, the 'name' attribute is looking 
>> for the name of a bean, not a value.
>>
>> You'll need to bind the request parameter map to a name in some scope 
>> first I think, something like:
>>
>> <bean:define name="rps" value="${params}"/>
>> <html:link ... name="rps">
>>
>> (not tested)
>>
>> L.
>>
>> Jose María wrote:
>>
>>> Hi, I think that I do not explained too good.
>>> My idea is pass a Map with multiple keys and values, the html:link
>>> documentation says that you can pass multiple params to an action with a
>>> Map Object in name attribute.
>>>
>>> I want to pass the object implicit "param" (Map) defined in Jstl, but I
>>> obtain the error "Can not find bean in any scope".
>>>
>>> Well, nothing else, if anyone knows how to do it, please response.
>>>
>>> Sample:
>>>
>>> http://url/action/show?date=????&type=????
>>>
>>> I want to pass this parameters to other action:
>>>
>>> <html:link action="/other" name="${param}">
>>>  ...
>>> </html:link>
>>>
>>>
>>>
>>> Thank you in advance¡¡
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>


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


Re: How to pass Jstl param implicit Object to html:link

Posted by Zarar Siddiqi <za...@utoronto.ca>.
Make sure params is of type java.util.Map.


----- Original Message ----- 
From: "Laurie Harper" <la...@holoweb.net>
To: <us...@struts.apache.org>
Sent: Tuesday, June 21, 2005 12:48 PM
Subject: Re: How to pass Jstl param implicit Object to html:link


> 'params' is a JSTL implicit object; I don't think it's required to be 
> bound to a bean in any scope. Also, the 'name' attribute is looking for 
> the name of a bean, not a value.
>
> You'll need to bind the request parameter map to a name in some scope 
> first I think, something like:
>
> <bean:define name="rps" value="${params}"/>
> <html:link ... name="rps">
>
> (not tested)
>
> L.
>
> Jose María wrote:
>
>> Hi, I think that I do not explained too good.
>> My idea is pass a Map with multiple keys and values, the html:link
>> documentation says that you can pass multiple params to an action with a
>> Map Object in name attribute.
>>
>> I want to pass the object implicit "param" (Map) defined in Jstl, but I
>> obtain the error "Can not find bean in any scope".
>>
>> Well, nothing else, if anyone knows how to do it, please response.
>>
>> Sample:
>>
>> http://url/action/show?date=????&type=????
>>
>> I want to pass this parameters to other action:
>>
>> <html:link action="/other" name="${param}">
>>  ...
>> </html:link>
>>
>>
>>
>> Thank you in advance¡¡
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
> 



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


Re: How to pass Jstl param implicit Object to html:link

Posted by Laurie Harper <la...@holoweb.net>.
'params' is a JSTL implicit object; I don't think it's required to be 
bound to a bean in any scope. Also, the 'name' attribute is looking for 
the name of a bean, not a value.

You'll need to bind the request parameter map to a name in some scope 
first I think, something like:

<bean:define name="rps" value="${params}"/>
<html:link ... name="rps">

(not tested)

L.

Jose María wrote:

> Hi, I think that I do not explained too good.
> My idea is pass a Map with multiple keys and values, the html:link
> documentation says that you can pass multiple params to an action with a
> Map Object in name attribute.
> 
> I want to pass the object implicit "param" (Map) defined in Jstl, but I
> obtain the error "Can not find bean in any scope".
> 
> Well, nothing else, if anyone knows how to do it, please response.
> 
> Sample:
> 
> http://url/action/show?date=????&type=????
> 
> I want to pass this parameters to other action:
> 
> <html:link action="/other" name="${param}">
>  ...
> </html:link>
> 
> 
> 
> Thank you in advance¡¡


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