Forums Register Login

Jsp & customTags

+Pie Number of slices to send: Send
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...
+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
 

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.
+Pie Number of slices to send: Send
 


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



Find the appropriate TLD. check the api's of your custom tag
It's exactly the same and completely different as this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 932 times.
Similar Threads
Embedding Custom Tag in Java Code
how to change tag body and evaluate it dynamically ?
Pass expression value to custom tag class?
Use Struts2 Tag inside custom tag
automation and code factoring with struts
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:06:46.