cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boisvert, Éric" <>
Subject extracting a value from a xscript variable
Date Fri, 17 Jun 2005 14:35:45 GMT
Hi all

I've manage to use xscript to read a document from an external source and
transform it to extract a specific tag (in xsp)

so <xsp:expr><xscript:get name="out"/></xsp:expr>


So far so good... now how do I get the value (blah) into a java string ??

I tried 

String myString = <xsp:expr><xscript:get name="out"/></xsp:expr>;
String myString = <xscript:get name="out"/>;

which does not work... and furthermore, even at this point, I'd have to get
rid of the enclosing tags.

any idea ?.. it's probably obvious, but I could not find anything on the web
or in the mail archives.


Eric Boisvert
Spécialiste TI-GI / IT-IM specialist, 418-654-3705, facsimile/télécopieur 
490, rue de la Couronne, Québec (Québec), G1K 9A9
490, rue de la Couronne, Quebec, Quebec, G1K 9A9

Laboratoire de cartographie numérique et de photogrammétrie (LCNP)
Digital Cartography and Photogrammetry Laboratory (DCPL)
Commission géologique du Canada (Québec) / Geological Survey of Canada
Ressources naturelles Canada / Natural Resources Canada
Gouvernement du Canada / Government of Canada

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message