Extract words from JSP into text file
I have a big problem:
I want to extract selected words from a jsp file.
Following are found in one of my jsp file:
1) <td width="217"><font face="verdana,arial" size=2>ORGANISATION UNIT NAME<font
I want to retrieve "ORGANISATION UNIT NAME"
2)errPrompt(frm.txtDesc, "Maximum length is just 100 character only");
I want to retrieve "Maximum length is just 100 character only"
I try String tokenising, then check that is the token ends with ">", then
the next token is the one
I want, then loop until "<" is found. BUT this would not work as there is
no spacing between some of
the tags and the words.(e.g. <p>abc)--> This cauese the whole token to be
<p>abc, so the "abc" will
not be extracted as it does not have a "ends with >" in front of it.
Even with using ">" as a checking does not work for pop up messages, as it
does not have tags(refer
to e.g 2).
Please reply a.s.a.p...
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL