File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes in javascript Pass variable value in a url Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "in javascript Pass variable value in a url" Watch "in javascript Pass variable value in a url" New topic
Author

in javascript Pass variable value in a url

vidushi srivastava
Greenhorn

Joined: Jan 02, 2013
Posts: 1
<script type="text/javascript">
d = new dTree('d');
d.add(1,0,'Open The Link','http://111.111.111.111/xyz?prefix=<%=session.getAttribute("Prefix")%>','','_blank');
document.write(d);
</script>


i want to send the session value in the url. How this can be achieved.
Albareto McKenzie
Ranch Hand

Joined: Apr 08, 2009
Posts: 268
What's wrong with that code?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56201
    
  13

It uses obsolete Java scriptlet expressions for one. Other than that, I guess we'll need to wait for the OP to provide more details.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: in javascript Pass variable value in a url
 
Similar Threads
How to print a image file into the printer
what does "this" refer to
How to redirect to a new page using JSP?
C:if misunderstanding
pass value from struts2 form to javascript