aspose file tools*
The moose likes Struts and the fly likes adding tag lib Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "adding tag lib" Watch "adding tag lib" New topic
Author

adding tag lib

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1204
this my address.jsp file.It contains some taglib properties.



it gives error.can't find taglib.how to add tag library.

I already added following jars
commons-beanutils-1.8.0.jar,commons-chain-1.2.jar,commons-digester-1.8.jar,servlet-api.jar,struts-1.2.9.jar
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

Have you define the taglib uri mapping in web.xml ?


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1204
no,how to define in web.xml?
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

aruna sameera wrote:no,how to define in web.xml?

Insted of directly giving an answer, I provides some pointers,
  • Simplest one, Google it.
  • Secondly, download the DTD for your existing web.xml, search through that DTD regarding where to define tlds.
    (Hint: it ll look kike :http:/java.sun.com/j2ee/dtds/web-app_2_X.dtd, where x is there version you're using)


  • Finally, You need NOT have to define a TLDs uri entry in web.xml, if you're using JSP2.0 and above complaint container/server.
     
    It is sorta covered in the JavaRanch Style Guide.
     
    subject: adding tag lib