File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes testing for param in custom tag.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "testing for param in custom tag.." Watch "testing for param in custom tag.." New topic

testing for param in custom tag..

Veronica Damian
Ranch Hand

Joined: Feb 04, 2006
Posts: 61
hi, I need to test for a param in custom tag..


but: I have three of these, generated with a loop (so secondary key can be either NEWS STORY 1, NEWS STORY 2, or NEWS STORY 3.. how do I test for if secondary key CONTAINS string 'NEWS STORY' without having to test for entire NEWS STORY 1 or 2 or 3?

(I need a sort of 'indexOf' way of doing this instead of '.equals'.....;)

thank you very much...
I agree. Here's the link:
subject: testing for param in custom tag..
It's not a secret anymore!