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 eclipse doesn't understand bean:write? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "eclipse doesn Watch "eclipse doesn New topic
Author

eclipse doesn't understand bean:write?

Ryan G Johnson
Ranch Hand

Joined: Nov 11, 2004
Posts: 33
I am getting an error when i use bean:write with eclipse. I am assuming i need add an external jar. which one do i add?
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Have you tried adding





at the very first line of your JSP?


SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
Ryan G Johnson
Ranch Hand

Joined: Nov 11, 2004
Posts: 33
this is what i have at the top. I added the tag you requested.

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" pefix="bean" %>
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
Have u added the tld file itself? the struts-bean.tld, struts-logic.tld etc..


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
Ryan G Johnson
Ranch Hand

Joined: Nov 11, 2004
Posts: 33
what do i add the .tld file to? how do i add it in eclipse?
Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
Hi, if you're tomcat is integrated with your eclipse then perhaps you could try taking a look in your web.xml and compare it to mine.



and in your workspace


ECLIPSE_HOME\WEB-INF\lib

you should have the struts.jar file there which I assume you already have in your TOMCAT_HOME\common\lib (if you've used struts without eclipse before). If not, try looking for it on the internet.

~Cheers


[ January 24, 2006: Message edited by: Timothy Sam ]
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
Place the tld files in web-inf and specify it in the web.xml as shown above
 
Consider Paul's rocket mass heater.
 
subject: eclipse doesn't understand bean:write?
 
Similar Threads
servlet.jar
The absolute uri: http://java.sun.com/jstl/core cannot be resolve
How to add tomcat 5.5.27 server in eclipse europa 3.3.2
&lt;bean:write name=?/%gt; in DynaValidatorForm
project build