Solved

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

Posted on 2007-12-02
5
3,816 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 26

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 26

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

In my daily work (mainly using ASP.net), I need to write a lot of JavaScript code. One of the most repetitive tasks I do are the jQuery Ajax calls. You know: (CODE) I don't know if for you it's the same, but for me is soooo tedious to write the …
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

746 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now