Return-Path: Mailing-List: contact taglibs-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list taglibs-dev@jakarta.apache.org Received: (qmail 99953 invoked from network); 27 Jul 2000 19:23:12 -0000 Received: from mgw-x1.nokia.com (131.228.20.21) by locus.apache.org with SMTP; 27 Jul 2000 19:23:12 -0000 Received: from mgw-i1.ntc.nokia.com (mgw-i1.ntc.nokia.com [131.228.118.60]) by mgw-x1.nokia.com (8.10.2/8.10.2/Nokia) with ESMTP id e6RJN8k19484 for ; Thu, 27 Jul 2000 22:23:08 +0300 (EET DST) Received: from esebh11nok.ntc.nokia.com (esebh11nok.ntc.nokia.com [131.228.10.108]) by mgw-i1.ntc.nokia.com (8.10.2/8.10.2/Nokia) with ESMTP id e6R8eDD13728 for ; Thu, 27 Jul 2000 11:40:13 +0300 (EET DST) Received: by esebh11nok.ntc.nokia.com with Internet Mail Service (5.5.2650.10) id ; Thu, 27 Jul 2000 11:37:40 +0300 Message-ID: <453FD4452B6CD311A95F0008C7731DCD03586CE2@eseis10nok> From: Marco.Mistroni@nokia.com To: taglibs-dev@jakarta.apache.org Subject: FW: HELP! problem with jsp tags and variable substitution Date: Thu, 27 Jul 2000 11:37:38 +0300 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.10) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N hi all, i reply with a fast solution (unfortunately not what i want) so far, a solution that i found stores variables in the session, and in the java class of the custom tag, using pageContext.getSession().getValue(....) i can get the value of an attribute however, i would like to do what i showed below.... if it can be possible, how can i do that???? htanx in advance & regards marco > <%@ page import="java.util.*" %> > <% String xslfile=null; > String format = request.getHeader("User-Agent"); > System.out.println("the user agent is " + format); > if(format.startsWith("Nokia")) { > response.setContentType("text/vnd.wap.wml"); > xslfile = "file:///c:\\marcodev\\provawml.xsl"; > } else { > xslfile="file:///c:\\marcodev\\prova.xsl"; > } > %> > > <%@ taglib uri="http://www.nokia.com/marcotag" prefix="marco" %> > > > > > > > > > When i load hte page i got back the following exception: > > <%= xslfile %>; Line 0; Column 0 > XSL Error: Could not parse <%= xslfile %> document! > XSL Error: SAX Exception > There was a SAX Exception! > org.apache.xalan.xslt.XSLProcessorException: File "<%= > xslfile %>" not found. > at > org.apache.xalan.xslt.XSLTEngineImpl.error(XSLTEngineImpl.java:1630) > at > org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(XSLTEngineImpl > .java:722) > > > That means that my JSP page did not substitute <%= xslfile %> !!!!! > can anyone explain me why????? and how to solve the problem > (without using fixed data)??? > > thanx in advance & best regards > marco >