• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TLD mandatory attribute

 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In FREDERIC ESNAULT's revision notes, says tlib-version,short-name and uri is mandatory attributes of TDL file.
But i successfully used tld file without using tlib-version and short-name attribute.

Is it mandatory?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
tlib-version is Mandatory
But short-name is optional
Check HFS&JSP pno-467
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i successfully used tld file without using tlib-version and short-name attribute


What about that?
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write .tld file without tlib-version attribute.
Than use tag in jsp file and you will get Error message.
Without using tag in jsp file you will never get error message.
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But i successfully used tld file without using tlib-version and short-name attribute.


read my point carefully.
if you want code i will put here.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
post your code
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Pleaseeeee forgive me gowher amin naik. You are write. I use a uri for test run. but that was in another tld file.

I don't know what to do. Tomorrow is my exam.
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Best of luck for your exams.
 
Rohitt Vermaa
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sreeraj, All the best for your exams. Be cool and take the test.
 
Sayak Banerjee
Ranch Hand
Posts: 292
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah...all the best for your exams ....relax man!! You're getting too worked up....If you want my suggestion ...stop studying for half an hour and relax....Hope that helps
 
Sreeraj G Harilal
Ranch Hand
Posts: 310
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks everybody for the best wishes.
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ... I dont think short-name is optional. Spec shows ...

<!ELEMENT taglib (tlibversion, jspversion?, shortname, uri?, info?, tag+) >
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic