• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
Ranch Hand
Posts: 94
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic