Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending data from JSP to action

Status
Not open for further replies.

SuperMoonster

Programmer
Aug 11, 2005
59
BR
I am not being able to retrieve in my action the data I sent it from my JSP.

I'm sending like this:

<html:link action="/ListaColecao.do?colec=${element.colecao}">${element.descricao}</html:link>

The link really does show me the parameter value, but I can't retrieve it in the action. I'm trying to do this:

Object obj = request.getParameter("colec");

Am i retrieving it correctly? How should i do it?
 
Hi

It should be some think like
Code:
<html:link action="/ListaColecao.do?colec=${param.colec}">${element.descricao}</html:link>

Cheers
Venu
 
I didn't really get it. What's the difference from my element.colecao to param.colec? If both have a value...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top