How does one print taglib variables from inside a scriptlet?
Is it possible?

e.g. the following does not work -- it returns the error
 "Undefined variable: test"

thanks!
-carole

<%@ page import="java.io.*,java.util.*" %>
<%@ taglib uri="http://java.sun.com/jstl/core"; prefix="c" %>

<c:set var="test" value="foobar" />

<%
try {
  PrintWriter outFile = new PrintWriter(new FileWriter("blort.txt"));
  outFile.println(test);
  outFile.close();
}
catch (IOException e) {
  System.err.println(e);
  System.exit(1);
}
%>

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
Carole E. Mah                     [EMAIL PROTECTED]
           Senior Programmer/Analyst
   Brown University Scholarly Technology Group
               phn 401-863-2669
               fax 401-863-9313
            http://www.stg.brown.edu/
  personal: http://www.stg.brown.edu/~carolem/





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

Reply via email to