• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help for using Struts and Weblogic 6.1  RSS feed

 
Lusa King
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello, I have trouble to use Struts in Weblogic 6.1. I tried to run an easy struts example, but I got the following error, I appreciate any help.
Parsing of JSP File '/strutsShop/BookView.jsp' failed:
--------------------------------------------------------------------------------
/strutsShop/BookView.jsp(2): Could not parse deployment descriptor: java.io.IOException: cannot resolve '/WEB-INF/struts-bean.tld' into a valid tag library
probably occurred due to an error in /strutsShop/BookView.jsp line 2:
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
 
Dave Landers
Ranch Hand
Posts: 401
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know much about struts, but given the taglib directive you posted, you should have a file named struts-bean.tld in the webapp's WEB-INF directory. If you don't, then find the tld file somewhere and copy it in there.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One more note...
The better practice with tag libraries is to define them in the web.xml and access them thru their defined uri.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!