This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
It is sorta covered in the JavaRanch Style Guide.
 
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