wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes how to pass an attribute to a request? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how to pass an attribute to a request?" Watch "how to pass an attribute to a request?" New topic
Author

how to pass an attribute to a request?

Giomar Guevara
Ranch Hand

Joined: Oct 18, 2006
Posts: 51
Hi I want to pass an attribute to the request with javascript.I tried with the following code but when I do a request.getParameter("kbaseId")the attribute gets no value, just ""....

case (112)://P tercer popup
window.top.frames['main'].location.href="../flagKBaseAsProduction.do?refreshTree=true&kbaseId="+ currentKbId;
return;

What could be wrong?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

Is the value of currentKbId reflected in the URL that shows in the address bar?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61105
    
  66

P.S. The correct term is "parameter". The term "attribute" has multiple other meanings.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass an attribute to a request?