aspose file tools*
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2 Popup after submit doesn Watch "Struts2 Popup after submit doesn New topic
Author

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>
<action name="SendChat" method="send" class="struts.chat.ChatConnectorAction">
<interceptor-ref name="secureStack"></interceptor-ref>
</action>

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.

Regards,
sarada,
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
 
jQuery in Action, 2nd edition
 
subject: Struts2 Popup after submit doesn't remain in the same page.