title: File "/struts-tags" not found in Struts 1.3
body: <p>I wrote a conditional <code>if else</code> tag inside a <code>logic:iterate</code> in jsp as below:-</p>
  
  <pre><code>&lt;s:if test="%{#status=='Scheduling'}"&gt;
  &lt;td&gt;&lt;input type="button" name="Save" enabled="enabled" value="View Log" class="Button" onclick="javascript:update('&lt;bean:write  name="test" property="listName" /&gt;','&lt;bean:write name="test" property="testType" /&gt;',&lt;bean:write  name="test" property="status" /&gt;,this.value)"&gt;&lt;/td&gt;
  &lt;/s:if&gt;
  
  &lt;s:elseif test="%{#status=='Running'}"&gt;
  &lt;td&gt;&lt;input type="button" name="Save" enabled="enabled" value="View Log" class="Button" onclick="javascript:update('&lt;bean:write  name="test" property="listName" /&gt;','&lt;bean:write name="test" property="testType" /&gt;',&lt;bean:write  name="test" property="status" /&gt;,this.value)"&gt;&lt;/td&gt;                
  &lt;/s:elseif&gt;
  
  &lt;s:else&gt;
  &lt;td&gt;&lt;input type="button" name="Save" disabled="disabled" value="View Log" class="Button" onclick="javascript:update('&lt;bean:write  name="test" property="listName" /&gt;','&lt;bean:write name="test" property="testType" /&gt;',&lt;bean:write  name="test" property="status" /&gt;,this.value)"&gt;&lt;/td&gt;                   
  &lt;/s:else&gt; 
  </code></pre>
  
  <p>I defined a <code>&lt;%@taglib prefix="s" uri="/struts-tags" %&gt;</code> in the beginning of the jsp file as shown below:-</p>
  
  <pre><code>&lt;%@page contentType="text/html" pageEncoding="UTF-8"%&gt;
  &lt;%@taglib uri="/WEB-INF/struts-html.tld" prefix="html" %&gt;
  &lt;%@taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %&gt;
  &lt;%@taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %&gt;
  &lt;%@taglib prefix="s" uri="/struts-tags" %&gt; 
  </code></pre>
  
  <p>When I am opening the jsp file i am getting the following errors. Could you help me in resolving this?</p>
  
  <pre><code>org.apache.jasper.JasperException: File "/struts-tags" not found
      org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
      org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
      org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
      org.apache.jasper.compiler.TagLibraryInfoImpl.&lt;init&gt;(TagLibraryInfoImpl.java:160)
      org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:429)
      org.apache.jasper.compiler.Parser.parseDirective(Parser.java:492)
      org.apache.jasper.compiler.Parser.parseElements(Parser.java:1439)
      org.apache.jasper.compiler.Parser.parse(Parser.java:137)
      org.apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
      org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
      org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:170)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:332)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:312)
      org.apache.jasper.compiler.Compiler.compile(Compiler.java:299)
      org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
      org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
      org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
      org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
      org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
  </code></pre>