It's not a secret anymore!
The moose likes Struts and the fly likes How to show pop-ups in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to show pop-ups in struts" Watch "How to show pop-ups in struts" New topic

How to show pop-ups in struts

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 196
Hi all,
In my struts-config,I have the following entries.
<forward name="Password Changed" path="/forms/passwordchanged.jsp" />
<forward name="Match Failed" path="/forms/matchfailed.jsp" />
But in case of "Match Failed" I want to open a pop-up window
(like alerts)instead of showing a matchfailed.jsp page.How to do this in struts?

with regards,
Jeanne Boyarsky
author & internet detective

Joined: May 26, 2003
Posts: 33132

You can't have to forwards going to two different places. As a workaround, repaint the page the user was on to enter the password and have a javascript pop-up with the new content.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: How to show pop-ups in struts
It's not a secret anymore!