This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
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.
 
Have you checked out Aspose?
 
subject: html:link problems
 
jQuery in Action, 3rd edition