Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

"$"-expressions within jsp:root, problem with WAS 5

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I have the following problem, which I cannot seem to get solved.
I am using "$"-expresions in a jsp within the <jsp:root> tag,
deployed in WAS 5. If I run the following sample jsp, the browser
receives:
<outertag>${varname}</outertag> instead of
<outertag>foo</outertag>

Does anyone have a clue? Is this a deployment issue?

Here is the sample jsp:

<jsp:root
xmlns:jsp="http://java.sun.com/JSP/Page";
xmlns:c="/tags/c"
xmlns:x="/tags/x"
xmlns:logic="/tags/struts-logic"
xmlns:bean="/tags/struts-bean"
xmlns:html="/tags/struts-html"
xmlns:string="/tags/string"
version="1.2">

<outertag>

<c:set var="varname" value="foo"/>

<c: out value="${varname}"/>

<!-- space between ':' and 'o' added to suppress dumb emoticon -->

</outertag>

</jsp:root>

[ December 11, 2004: Message edited by: Mark Polman ]

[ December 11, 2004: Message edited by: Mark Polman ]
[ December 12, 2004: Message edited by: Mark Polman ]
 
Screaming fools! It's nothing more than a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic