How to show pop-up in struts
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   ajit_roy
Posted On:   Friday, September 23, 2005 05:37 AM

Hi all,

In my struts-config,I have the following entries.



But in case of "Match Failed" I want to open a pop-up window
(like alerts)instead of showing a matchfailed.jsp page.How to do this in struts?

with regards,
Ajse

Re: How to show pop-up in struts

Posted By:   Anonymous  
Posted On:   Friday, September 23, 2005 06:17 AM

Hi ajit,

I don't think any solution from struts side u need to use
javascript for this.In the page u want to invoke this matchfailed.jsp u need to handle the onClick event and in that event u open a new window like


window.open( 'url', 'Title of the Window', 'resizable=yes,scrollbars=yes,width=800,height=500,left=100,top=100' );


the url u need to give ur action path

try this this may helpful to u


Good luck :)


Krishna Rajendra Alapati :)
About | Sitemap | Contact