File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes What is wrong with my html:link code. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "What is wrong with my html:link code." Watch "What is wrong with my html:link code." New topic

What is wrong with my html:link code.

Bruce Sparo

Joined: Jun 24, 2004
Posts: 9
what am I doing wrong.....
<td><html:link forward="enterForgotPassword"> <html:img page="/images/forgotPassword.gif" width="149" height="21"/></html:link> </td>

My struts-config.xml config

<!-- Enter logon information -->
<action path="/enterForgotPassword"

Error 500--Internal Server Error
javax.servlet.jsp.JspException: Cannot create rewrite URL: Cannot retrieve ActionForward named enterForgotPassword
at org.apache.struts.taglib.html.LinkTag.calculateURL(
at org.apache.struts.taglib.html.LinkTag.doStartTag(
at jsp_servlet._templates.__logon._jspService(
at weblogic.servlet.jsp.JspBase.service(

If I haven't already said it... THANKS for responding.
Marc Peabody
pie sneak

Joined: Feb 05, 2003
Posts: 4727

your html:link looks for an ActionForward, not ActionMapping

<forward name="enterForgotPassword" path="/templates/ForgotPassword.jsp"></forward>

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