bean:message inside javascript's alert()
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Abe_B
Posted On:   Tuesday, October 8, 2002 06:40 AM

Is there a way to format my javascript so that I can use my struts message resouce inside an alert()?

Re: bean:message inside javascript's alert()

Posted By:   Ed_Hoden  
Posted On:   Tuesday, October 8, 2002 02:26 PM

Sure enough. Just use the bean:message tag to assign a value to a var or put it directly in the alert call.


<%@ page language="java" %>

<%@ taglib uri="struts-bean" prefix="bean" %>





Test








This is a test
















HTH - Ed
About | Sitemap | Contact