Solved

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

Posted on 2007-12-02
5
3,924 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Quiz: What Do These Organizations Have In Common?

Hint: Their teams ended up taking quizzes, too.

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-…
This article discusses how to create an extensible mechanism for linked drop downs.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
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)

696 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