aspose file tools*
The moose likes JSP and the fly likes Jsp & customTags Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp & customTags" Watch "Jsp & customTags" New topic
Author

Jsp & customTags

kanth varada
Greenhorn

Joined: Feb 14, 2006
Posts: 14
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

Joined: Nov 24, 2005
Posts: 14688
    
  16

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


[My Blog]
All roads lead to JavaRanch
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
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

Joined: Nov 15, 2004
Posts: 1026

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


Find the appropriate TLD. check the api's of your custom tag


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
 
 
subject: Jsp & customTags