• Post Reply Bookmark Topic Watch Topic
  • New Topic

new to JSTL  RSS feed

 
parul bajaj
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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 ]
 
gaurav chhabra
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Posts: 65824
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!