jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes Struts2 Popup after submit doesn't remain in the same page. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Popup after submit doesn Watch "Struts2 Popup after submit doesn New topic

Struts2 Popup after submit doesn't remain in the same page.

sarada bokka
Ranch Hand

Joined: Jan 13, 2010
Posts: 80
Hi All,

I have created a popup. When ever i submit on popup page it still should be open until i manually closes it.
But after submit a new page with submit url action is displayed.

my configurations below

<action name="ChatConnector" method="openSession" class="struts.chat.ChatConnectorAction">
<interceptor-ref name="secureStack"></interceptor-ref>
<result name="success" type="taipanVelocity">/svelocity/chat/chatconnector.vm</result> <!-- a pop-up -->
<action name="SendChat" method="send" class="struts.chat.ChatConnectorAction">
<interceptor-ref name="secureStack"></interceptor-ref>

create a popup using dojo and make a ajax call for content /ChatConnector.action Popup comes up fine. Now After submit of SendChat it is comming up as hhtp:localhost:8080//<MyCode>/SendChat

Need help.

Yogesh Lonkar
Ranch Hand

Joined: Jul 17, 2012
Posts: 94

Do you have any form on pop page? if yes make sure your submitting that form using javaScript or Ajax for it and on return status you can deiced to close or keep popup displayed

Learning some thing New Every Day
I agree. Here's the link: http://aspose.com/file-tools
subject: Struts2 Popup after submit doesn't remain in the same page.
Similar Threads
NullPointerException @ validation interceptor
Overriding default interceptor stack
interceptor problem
struts2 execandwait interceptor
Interceptor messes up action class in Struts2