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

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
 
Similar Threads
C:if misunderstanding
How to redirect to a new page using JSP?
what does "this" refer to
How to print a image file into the printer
pass value from struts2 form to javascript