• 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

Jsp & customTags

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a customTag which will display the string.what i want is to check that string with a word.how can i do that please help me...

For Example:

I have a custom Tag:
<s:itemTitle feedId='<%=string%>'/> ----> which will diaplay a line of statement on a JSP Page. (i.e for example it will display "welcome to world of Magic")

so i want to compare that string with a word "Magic"

For that i have to store that custom Tag data in a string Variable, how can i do that...Pls help me....


Please give a small example on that...

beacuse custom tag has so many class....which is written by some body else...how can i trace that and solve my problem.......

Please help me by giving me a small example...
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To avoid the pain of creating tag handlers,
use JSP2.0's Tag files (*.tag)
They are easy to use. JSP only, no more java code.

For an introduction:
http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html
 
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Satou kurinosuke:
To avoid the pain of creating tag handlers,
use JSP2.0's Tag files (*.tag)
They are easy to use. JSP only, no more java code.

For an introduction:
http://www.onjava.com/pub/a/onjava/2004/05/12/jsp2part4.html



Quite right. But I think the OP has to do with the existing code, that is written by someone else. He/She might not start creating tag with this proposed style.
 
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


how can i trace that and solve my problem.......



Find the appropriate TLD. check the api's of your custom tag
 
reply
    Bookmark Topic Watch Topic
  • New Topic