Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Ken Adams
March 19, 2005, 3:46 am
rate this thread
Yes. The same way as one puts JSP code inside HTML code (although you also
have to write JSP to output a content type header of text/css, since it
would (I believe) otherwise default to text/html).
David Dorward <http://blog.dorward.me.uk/ <http://dorward.me.uk/
Home is where the ~/.bashrc is
Ken Adams wrote:
processed by the server before it is output, and the browser only
understand the JSP, then no, you can't.
eg. If this is your script.
* Code to read from DB or other source, or whatever you need.
* Say, for example, the string "hello world" is returned, and
* set to the message variable
message = "hello world";
var msg = "<%=message%>";
From the above JSP, the browser would recieve and execute the following
var msg = "hello world";
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox