Two Laptop Bag*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to pass parameters to javascript function on click of html:link
 
Similar Threads
Javascript Pop-up window
response.sendRedirect()
help me in HTML tags
open new browser window on click of button.
how to remove toolbar,menubar from my jsp file