Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html:link problems" Watch "html:link problems" New topic
Author

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
Sheriff

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.
 
Consider Paul's rocket mass heater.
 
subject: html:link problems
 
Similar Threads
html:link is not working
html:link and form
How to replace &nbsp;
Problem with nested:link href
how to send table cell value to action class