This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  65

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: 60046
    
  65

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?
 
Similar Threads
Doubt on attribute scope thread saftey mock Q
Struts Application Design Question re ActionForms
How to pass request Attribute to Action in Struts 2
how to pass a list of list (table) to be saved in ajax
Can two different web application share a variable