Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

tag library error  RSS feed

 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is my header.tag file


i put this file inside the web-inf/tag directory
this is my jsp file



but it gives error ?it says cano't find tag library descripter for WEB-INF/tags
 
Vijitha Kumara
Bartender
Posts: 3973
24
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your "prefix" is "myTags?" and you are using "<myTags:..>" ?
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.what is the problem?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anarkali wrote: i put this file inside the web-inf/tag directory

Is that a typo?
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this is from the head first book
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I'm asking if when you typed what I quoted you made a typing error and typed "tag" instead of "tags".
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.I change it .But still it gives compilter error.I am using eclips.
It underline the red color "/WEB-INF/tags" part
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyway i didn't add anything to the web.xml regarding tag file .is it ok?
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok .it is working.
if i put jsp file <img src="{"images/aruna.jpg"> <br>
where should the images folder should be?
inside the WEB-INF or out of it?
 
avi sinha
Ranch Hand
Posts: 453
Google Web Toolkit Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anarkali perera wrote:Ok .it is working.
if i put jsp file <img src="{"images/aruna.jpg"> <br>
where should the images folder should be?
inside the WEB-INF or out of it?


it should be inside /images/

i.e your_web-app--->images---->aruna.jpg

avi sinha
 
anarkali perera
Ranch Hand
Posts: 237
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now there is no compiler error.
this is Header.tag file


this is the welcome.jsp file

but when i run the welcome.jsp it gives only
"Welcome to our site. "

wher is the error?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!