Solved

Pop-up window in jsp using struts <html:link tag

Posted on 2007-12-02
5
3,856 Views
Last Modified: 2013-11-24
Hello,

I need to pop-up a window, when the user clicks on link. I wanted to use the <html:link> tag from struts library.

Say the, the link name is Edit. When the user clicks on the edit link a small pop-up window with few form fields with pre-filled data and submit button should pop-up.

Can anybody provide me with a good solution? In advance, I appreciate your help.

Thanks--
Mudigonda
0
Comment
Question by:mudigondamm
  • 2
5 Comments
 
LVL 27

Expert Comment

by:mrcoffee365
ID: 20392891
The HTML to create a popup window from a link is:

<a target="_blank" href="/myfile.jsp">Popup Window</a>

You can use target="_blank" in html:link tags.
0
 

Author Comment

by:mudigondamm
ID: 20393041
I'm sorry. Actually, what I meant by pop-up is a small dialog box kind of thing. Not exactly a complete browser window using target="_blank" in the <html:link>. I'm looking for some javascript solution in jsp page using struts framework.

Anyways, I appreciate for your quick reply.

Thanks--
Madhu
0
 
LVL 27

Accepted Solution

by:
mrcoffee365 earned 125 total points
ID: 20394147
We don't integrate Javascript with Struts -- we just use Javascript in our display pages.  You might try AjaxTags:
http://ajaxtags.sourceforge.net/index.html

or the Struts menu tag lib (since menus are essentially popovers, which is what I now assume you're looking for):
http://struts-menu.sourceforge.net/
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

823 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question