• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp & customTags

 
kanth varada
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • 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
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • 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.
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic