For Programmers: Free Programming Magazines  


Home > Archive > Java Help > April 2005 > Request Time (RT) expressions being treated as literals in Tomcat 4.x









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Request Time (RT) expressions being treated as literals in Tomcat 4.x
Brian Munroe

2005-04-22, 3:58 am

Because I have to use Tomcat 4.x, I am using RT expressions to
dynamically populate the attributes of my custom tags:

<myTag:sayHello name=<%= request.getParameter("userName") %>" />

Can anyone tell my why the RT expression is being treated as a literal?
All my tag is supposed to do is take the name attribute and write it
back to the browser (like "Hello Brian", for example).

Instead it prints back:

"Hello <%= request.getParameter("userName") %>"

Any suggestions?

thanks

-- brian

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com