Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to show pop-ups in struts

 
ajse ruku
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
Ajse
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34839
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ajse,
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic