• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

new to JSTL

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello sir
i am new to JSTL and started with making custom tags . i am studying from a tutorial in which it was written that .....

store .....

1) tag handler in c:\tomcat\webapps\examples\web-inf\classes\>
2) tag lib descriptor in c:\tomcat\webapps\examples\web-inf\jsp>
3) i have save the jsp file which is using these tags in \webapps\root>

now i write http://localhost:8080/tag.jsp

then it will give error that


org.apache.jasper.JasperException: File "/WEB-INF/jsp/mytaglib.tld" not found

please tell me the exact path where i should store all the files ...

thanks for the help

parul bajaj
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your question about the JSTL or about writing your own custom tags? It seems to be the latter.

org.apache.jasper.JasperException: File "/WEB-INF/jsp/mytaglib.tld" not found



Does this file, in fact, exist?

2) tag lib descriptor in c:\tomcat\webapps\examples\web-inf\jsp>



web-inf or WEB-INF? They are not the same.
[ May 11, 2005: Message edited by: Bear Bibeault ]
 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir thanks for reply

i have done all the things again as follows ..........

In the directory %TOMCAT_HOME%\webapps\ i have create the following folders:

1. %TOMCAT_HOME%\webapps\testTags
2. %TOMCAT_HOME%\webapps\testTags\META-INF
3. %TOMCAT_HOME%\webapps\testTags\WEB-INF
4. %TOMCAT_HOME%\webapps\testTags\WEB-INF\tlds
5. %TOMCAT_HOME%\webapps\testTags\WEB-INF\classes
6. %TOMCAT_HOME%\webapps\testTags\WEB-INF\classes\com
7. %TOMCAT_HOME%\webapps\testTags\WEB-INF\classes\com\tek271
8. %TOMCAT_HOME%\webapps\testTags\WEB-INF\classes\com\tek271\testTags

then i have written the tag handler and save the class file in ...

%TOMCAT_HOME%\webapps\testTags\WEB-INF\classes\com\tek271\testTags\TagError.class


then write tld and save it into .......

%TOMCAT_HOME%\webapps\testTags\WEB-INF\tlds\testTld.tld

then write web.xml and save it into ..........

%TOMCAT_HOME%\webapps\testTags\WEB-INF\web.xml

and save the file using jsp in.........

%TOMCAT_HOME%\webapps\testTags\testJsp.jsp


then i write in the url .....

http://localhost:8080/testTags/testJsp.jsp

but then it will give the error that .....

The requested resource (/testTags/testJsp.jsp) is not available.

please tell me that what to do ...i am using tomcat4.1 and jdk1.4

please help me out





gaurav chhabra


 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
guarav, please do not hijack other people's topics with questions of your own. Unless your problem is identical, please start a new topic when you have a question.
 
reply
    Bookmark Topic Watch Topic
  • New Topic