File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes File Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "File "/tags/struts-bean" not found" Watch "File "/tags/struts-bean" not found" New topic
Author

File "/tags/struts-bean" not found

Priyanka Das
Greenhorn

Joined: Mar 01, 2011
Posts: 15
org.apache.jasper.JasperException: File "/tags/struts-bean" 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.<init>(TagLibraryInfoImpl.java:160)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:430)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:499)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1558)
org.apache.jasper.compiler.Parser.parse(Parser.java:130)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:245)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:101)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:176)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:317)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.displaytag.filter.ResponseOverrideFilter.doFilter(ResponseOverrideFilter.java:125)
com.ochre.ewash.core.web.filters.EwashReportFilter.doFilter(EwashReportFilter.java:70)
com.ochre.ewash.core.web.filters.EwashAuthenticationFilter.doFilter(EwashAuthenticationFilter.java:54)


note The full stack trace of the root cause is available in the Apache Tomcat/5.5.28 logs.

This is my error stack ? Why I am getting error


<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-html" prefix="html" %>

<html:html locale="true">
<head>
<title>Struts File Upload Example</title>
<html:base/>
</head>
<body bgcolor="white">
<html:form action="/fileupload" type="com.ochre.ewash.hfodetails.web.form.StrutsUploadForm" enctype="multipart/form-data">
<table>
<tr>
<td align="center" colspan="2">
<font size="4">Please Enter the Following Details</font>
</tr>

<tr>
<td align="left" colspan="2">
<font color="red"><html:errors/></font>
</tr>



<tr>
<td align="right">
File Name
</td>
<td align="left">
<html:file property="theFile"/>
</td>
</tr>

<tr>
<td align="center" colspan="2">
<html:submit>Upload File</html:submit>
</td>
</tr>
</table>

</html:form>
</body>
</html:html>


This is the JSP code....

Please reply .This is important for my project.

Thanks in advance..
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

Where do you have your struts-bean.tld, the location


Have Fun with Java
little,little.. little by little makes a lot..
Priyanka Das
Greenhorn

Joined: Mar 01, 2011
Posts: 15
Shankar Tanikella wrote:Where do you have your struts-bean.tld, the location



struts-bean.tld is inside WEB-INF
Shankar Tanikella
Ranch Hand

Joined: Jan 30, 2011
Posts: 329

is this what you have in your deployment descriptor? Is it the same? the location
Priyanka Das
Greenhorn

Joined: Mar 01, 2011
Posts: 15
Shankar Tanikella wrote:is this what you have in your deployment descriptor? Is it the same? the location



Yaa these code are present in my web.xml file.

Now showing error org.apache.jasper.JasperException: File "/tags/struts-html" not found
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File "/tags/struts-bean" not found