File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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: 60822
    
  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: 60822
    
  65

P.S. The correct term is "parameter". The term "attribute" has multiple other meanings.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to pass an attribute to a request?
 
Similar Threads
Can two different web application share a variable
Doubt on attribute scope thread saftey mock Q
how to pass a list of list (table) to be saved in ajax
Struts Application Design Question re ActionForms
How to pass request Attribute to Action in Struts 2