Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1185
  • Last Modified:

how to display popup using struts


How can I display a popup using struts?

Thanks
0
wallpaperpaste
Asked:
wallpaperpaste
3 Solutions
 
Madhukar_MythriCommented:
This could be done using javascript itself.

var newWind = window.open("<URL>", "<name of the window>", "Dimension string");
newWind.focus();

Google window.open to get to know more about the arguments.

HTH.
0
 
jaggernatCommented:
function submitmeAction(action)
 {    
         if (action == 'checkout')
         {
                document.forms[0].target="_blank";    
      document.forms[0].action=" //url ";
      document.forms[0].submit();
                   }


<!-- struts button -->
<html:button  property="" styleClass="button" onclick="submitmeAction('checkout');" style="margin-left: 15em;"/>
0
 
rama_krishna580Commented:
0
 
wallpaperpasteAuthor Commented:

Sorry about delay, thanks for the help ;-)
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now