• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is wrong with my html:link code.

 
Bruce Sparo
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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"
forward="/templates/ForgotPassword.jsp">
</action>




Error 500--Internal Server Error
javax.servlet.jsp.JspException: Cannot create rewrite URL: java.net.MalformedURLException: Cannot retrieve ActionForward named enterForgotPassword
at org.apache.struts.taglib.html.LinkTag.calculateURL(LinkTag.java:499)
at org.apache.struts.taglib.html.LinkTag.doStartTag(LinkTag.java:353)
at jsp_servlet._templates.__logon._jspService(__logon.java:639)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your html:link looks for an ActionForward, not ActionMapping

<global-forwards>
<forward name="enterForgotPassword" path="/templates/ForgotPassword.jsp"></forward>
</global-forwards>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic