struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anna Simbirtsev" <asimbirt...@gmail.com>
Subject Re: Passing variables in url
Date Mon, 27 Aug 2007 15:56:33 GMT
I tried first assigning the value to a string and then sending it.
<% String value_ = duf1.getValue(); %>

<html:link page="/myAction.do" paramId="value_name" paramName="value_">
        <html:img srcKey="add.button.image" altKey="add.button.image.alt"
width="80" height="20"border="0"/></html:link>

Still does not work.

On 8/27/07, Oleg Mikheev <mihel@bigfoot.com> wrote:
>
> Anna Simbirtsev wrote:
> > <html:link page="/myAction.do" paramId="param1" paramName="value">
> >         <html:img srcKey="add.button.image" altKey="add.button.image.alt
> "
> > width="80" height="20"border="0"/></html:link>
> >
> > value is a bean in struts, that has get/set functions.
>
>
> I think that value itself should be a String not a bean.
>
> From struts documents:
> paramName - The name of a JSP bean that is a String containing the
> value for the request parameter named by paramId
>
> They are calling it a JSP bean, which is not a JavaBean.
>
> Although this is just my guess.
>
> Oleg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message