aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
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: 298
What's wrong with that code?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61658
    
  67

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: in javascript Pass variable value in a url