You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by karen bran <kg...@yahoo.com> on 2002/08/12 22:28:03 UTC
summary text for indexed jsp files -- modify the HTMLParser.jj
Hello,
I modified the IndexHTML.java and let the jsp files be indexed, but the source code of the jsp tags such as <%@page import....... shows up in the result summary.
I checked this mailing list messages, someone suggested to modify the HTMLParser.jj file to make the jsp tag text as the 3rd comment. Since I am not familiar with the Javacc grammar, I don't know how to hack the HTMLParser.jj and insert in the 3rd comment tag for the jsp tag.
here is the 2 existing comment tags in the HTMLParser.jj, can someone help me to figure out how to add the 3rd one ???
Thanks a lot.
<WithinComment1> TOKEN :
{
< CommentText1: (~["-"])+ | "-" >
| < CommentEnd1: "-->" > : DEFAULT
}
<WithinComment2> TOKEN :
{
< CommentText2: (~[">"])+ >
| < CommentEnd2: ">" > : DEFAULT
}
WithinComment3> TOKEN :
{
< CommentText3: ?????? >
| < CommentEnd3: ??????> : DEFAULT
}
---------------------------------
Do You Yahoo!?
HotJobs, a Yahoo! service - Search Thousands of New Jobs