aspose file tools
The moose likes Struts and the fly likes How to pass parameters to javascript function on click of  html:link Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "How to pass parameters to javascript function on click of  html:link" Watch "How to pass parameters to javascript function on click of  html:link" New topic
Author

How to pass parameters to javascript function on click of html:link

suji pra
Greenhorn

Joined: Sep 27, 2002
Posts: 11
I am displaying links using logic:iterate tag. Onclick of link I need to window.open with some paramters passed to the javascript openNewWin("FormId", "BranchId") which implements window.open() functionality.
What is struts way of doing this ?
Thanks,


He is able who thinks he is able.
Jason Menard
Sheriff

Joined: Nov 09, 2000
Posts: 6450
I've done something like this before:

If something along these lines won't work for you, maybe you could post some of your code.


Jason's Blog
 
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: How to pass parameters to javascript function on click of html:link
 
Similar Threads
help me in HTML tags
how to remove toolbar,menubar from my jsp file
Javascript Pop-up window
response.sendRedirect()
open new browser window on click of button.