struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nils-Helge Garli Hegvik" <nil...@gmail.com>
Subject Re: getting param from an url link
Date Mon, 07 Jan 2008 13:48:53 GMT
There's a big difference between a request attribute and a request
parameter. You should try request.getParameter instead.

Maybe this can explain: http://www.jguru.com/faq/view.jsp?EID=1307699

Nils-H

On 1/7/08, auz <f.ivan86@gmail.com> wrote:
>
> hi, im a struts newbie, im using stuts 1.2.9 and have a problem, i cannot get
> params from url in struts action
>
> in my a href i have /sservice/editSP.do?spid=<bean:write name="studyProgram"
> property="studyProgramID"/>
>
> action code :
>
> String param=(String)request.getAttribute("spid");
>
>
>
> but request has no param with name spid or any other
>
> note: if i  just type editSP?spid=..... server says resource not found altho
> i have mapped it correctly in stuts config
> --
> View this message in context: http://www.nabble.com/getting-param-from-an-url-link-tp14665989p14665989.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message