struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yahoo kin" <kiat...@yahoo.com>
Subject Re: New LinkTag not working?
Date Mon, 05 Feb 2001 10:24:04 GMT
Problem solved. I forgot to change the taglib uri from struts-form.tld to struts-html.tld.
  ----- Original Message ----- 
  From: kin 
  To: struts-user@jakarta.apache.org 
  Sent: Monday, February 05, 2001 4:59 AM
  Subject: New LinkTag not working?


To all,
Currently i'm using the struts framework on my school project.
Before this, I put a LinkTag from "org.apache.struts.taglib package" inside the IterationTag.

This LinkTag passing some parameter around by put inside a Map. It working perfectly for me.
---------------------------------------
Here is the snipplet of iteration code:
              <logic:iterate id="messages" name="member" property="iteration">     
         <tr>                 <td width="33" bgcolor="#FFFFFF">              
    <div align="center">                  </div>                </td>  
             <td width="265" bgcolor="#FFFFFF">                                    
<form:link href="/project/viewMessage.do" name="messages" property="parameterMap"> 
                 <bean:write name="messages" property="title" /> </form:link>
               </td>              </tr>              </logic:iterate> ----------------------------------------
 
But when i switch the LinkTag to "org.apache.struts.taglib.html package" It cause the error.
After study the both LinkTag source code, i found that the newer version of LinkTag use the

RequestUtils.lookup method to retrieve the bean rather than pageContext.findAttribute.
Anyone got idea to solve this? Or, I have to create my custom linkTag such as struts-example
did. 
FYI, the old version I used is jakarta-struts-20010114 and latest version i downloaded is
jakarta-struts-20010203
TIA
regards,kin
Here is the error messge shown:
javax.servlet.ServletException
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
	at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1592)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1435)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)

  Root cause: 
java.lang.NoSuchMethodError
	at org.apache.struts.taglib.form.LinkTag.hyperlink(LinkTag.java:497)
	at org.apache.struts.taglib.form.LinkTag.doStartTag(LinkTag.java:286)
	at _0002fmanagerMessage_0002ejspmanagerMessage_jsp_11._jspService(_0002fmanagerMessage_0002ejspmanagerMessage_jsp_11.java:153)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:194)
	at org.apache.struts.action.ActionServlet.processActionForward(ActionServlet.java:1592)
	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1435)
	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:463)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)



Mime
View raw message