You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Peter Smith <ps...@infonow.com> on 2003/06/26 21:10:07 UTC

Simple html:link question

Hi all,

I have a simple question about the html-el link tag.  I am trying to add a
user id onto the url.  I would like the parameter to be named "userId" and
its value is found at ${pageContext.request.remoteUser}.  I have tried the
following ...

<html:link action="/profileEdit"
           paramId="userId"
           paramName="${pageContext.request.remoteUser}"/>

I get this error: 'Cannot find bean psmith_INOW in any scope'

(psmith_INOW is the value of remoteUser)

Anyone have a suggestion?

Thanks, Peter

-- 
Peter Smith
Software Engineer
InfoNow Corporation


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


Struts-EL w/Resin

Posted by Martin Naskovski <mn...@san.rr.com>.
I noticed that Struts comes with an implementation of JSTL as well in the
contrib directory. Do I need to install this JSTL library w/Resin and
disable Resin's 'fast-jstl' implementation or is all I need the
struts-el.jar and the *el-tld's to use Struts-EL?

Thanks.
Martin


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


Re: Simple html:link question

Posted by Peter Smith <ps...@infonow.com>.
Thanks Kris, that worked.

I tried that earlier, but I had paramName="${remoteUser} instead of
paramName="remoteUser".  Sigh.

-- 
Peter Smith
Software Engineer
InfoNow Corporation

> From: Kris Schneider <kr...@dotech.com>
> Reply-To: "Struts Users Mailing List" <st...@jakarta.apache.org>
> Date: Thu, 26 Jun 2003 15:20:24 -0400
> To: Struts Users Mailing List <st...@jakarta.apache.org>
> Subject: Re: Simple html:link question
> 
> Maybe:
> 
> <c:set var="remoteUser" value="${pageContext.request.remoteUser}"/>
> <html:link action="/profileEdit"
>          paramId="userId"
>          paramName="remoteUser"/>
> 
> paramName is a key used to look up a scoped attribute.
> 
> Quoting Peter Smith <ps...@infonow.com>:
> 
>> Hi all,
>> 
>> I have a simple question about the html-el link tag.  I am trying to add a
>> user id onto the url.  I would like the parameter to be named "userId" and
>> its value is found at ${pageContext.request.remoteUser}.  I have tried the
>> following ...
>> 
>> <html:link action="/profileEdit"
>>            paramId="userId"
>>            paramName="${pageContext.request.remoteUser}"/>
>> 
>> I get this error: 'Cannot find bean psmith_INOW in any scope'
>> 
>> (psmith_INOW is the value of remoteUser)
>> 
>> Anyone have a suggestion?
>> 
>> Thanks, Peter
>> 
>> -- 
>> Peter Smith
>> Software Engineer
>> InfoNow Corporation
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>> 
> 
> 
> -- 
> Kris Schneider <ma...@dotech.com>
> D.O.Tech       <http://www.dotech.com/>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


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


Re: Simple html:link question

Posted by Kris Schneider <kr...@dotech.com>.
Maybe:

<c:set var="remoteUser" value="${pageContext.request.remoteUser}"/>
<html:link action="/profileEdit"
           paramId="userId"
           paramName="remoteUser"/>

paramName is a key used to look up a scoped attribute.

Quoting Peter Smith <ps...@infonow.com>:

> Hi all,
> 
> I have a simple question about the html-el link tag.  I am trying to add a
> user id onto the url.  I would like the parameter to be named "userId" and
> its value is found at ${pageContext.request.remoteUser}.  I have tried the
> following ...
> 
> <html:link action="/profileEdit"
>            paramId="userId"
>            paramName="${pageContext.request.remoteUser}"/>
> 
> I get this error: 'Cannot find bean psmith_INOW in any scope'
> 
> (psmith_INOW is the value of remoteUser)
> 
> Anyone have a suggestion?
> 
> Thanks, Peter
> 
> -- 
> Peter Smith
> Software Engineer
> InfoNow Corporation
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 


-- 
Kris Schneider <ma...@dotech.com>
D.O.Tech       <http://www.dotech.com/>

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