RE: html:javascript question

2004-03-25 Thread Colm Garvey
And alternatively,

 
 alert('<bean:message
key="global.error.heading"/>\n\n<html:messages id="error"> - <bean:write
name="error"/>\n\n</html:messages>')
 


global.error.heading=An Error(s) has occured:

Colm

-Original Message-
From: Andreas Solarik [mailto:[EMAIL PROTECTED]
Sent: 24 March 2004 15:18
To: 'Struts Users Mailing List'
Subject: AW: html:javascript question


nice one, didn't even occur to me to do this.

Andreas

-Ursprüngliche Nachricht-
Von: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. März 2004 16:05
An: Struts Users Mailing List
Betreff: RE: html:javascript question


var myMessage = "";
alert(myMessage)

-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 6:23 PM
To: Struts Users Mailing List
Subject: html:javascript question


I want to put the msg inside a javasript alert (popup with error message
),some one know how can I make it ???












-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: html:javascript question

2004-03-24 Thread Andreas Solarik
nice one, didn't even occur to me to do this.

Andreas

-Ursprüngliche Nachricht-
Von: Janarthan Sathiamurthy [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. März 2004 16:05
An: Struts Users Mailing List
Betreff: RE: html:javascript question


var myMessage = "";
alert(myMessage)

-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 6:23 PM
To: Struts Users Mailing List
Subject: html:javascript question


I want to put the msg inside a javasript alert (popup with error message
),some one know how can I make it ???












-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: html:javascript question

2004-03-24 Thread Janarthan Sathiamurthy
var myMessage = "";
alert(myMessage)

-Original Message-
From: Daniel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 24, 2004 6:23 PM
To: Struts Users Mailing List
Subject: html:javascript question


I want to put the msg inside a javasript alert (popup with error message ),some one 
know how can I make it ???












-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AW: html:javascript question

2004-03-24 Thread Andreas Solarik
Well, I believe that you are not allowed to mix static and dynamic text
within a JSP, so something like

alert("Error message: ");

should fail. I read once that enclosing the dynamic text in single quotes
whould work (never tried it though). One solution that I do know is:


<%
  String tempString="Error message: " + whateverBean.getWhatever();
%>

alert(<%= tempString %>);


Its ugly, but it works. Anyone know of a more elegant solution? Note that
you need to get to the data contained in the bean you are writing from,
possibly with a request.getAtribute("attributeName");

Good luck,

Andreas


-Ursprüngliche Nachricht-
Von: Daniel [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 24. März 2004 13:53
An: Struts Users Mailing List
Betreff: html:javascript question


I want to put the msg inside a javasript alert (popup with error
message ),some one know how can I make it ???













-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



html:javascript question

2004-03-24 Thread Daniel
I want to put the msg inside a javasript alert (popup with error message ),some one 
know how can I make it ???