Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Struts and the fly likes html:link problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link problems" Watch "html:link problems" New topic

html:link problems

Anthony Watson
Ranch Hand

Joined: Sep 25, 2003
Posts: 327
When I use the following code, the request time expression is not being evaluated on the server and it is just showing up in the html. What am I doing wrong? (I had to mispell "onmoseover" so that javaranch would accept my post) Thanks in advance.
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

No problem.
String mooseOver = "swapImage('about','" + request.getContextPath() + "/images/over.gif');";
<html:link action="logon" onmooseover='<%= mooseOver %>' >

A good workman is known by his tools.
I agree. Here's the link:
subject: html:link problems
It's not a secret anymore!