mysql - JSP - Read page's meta tag -


what need read in meta tag of html file (it's keyword meta tag) , wondering if possible jsp? need because accessing database, mysql search based off of keyword. possible? if so, know how?

so mysql is:

"select * db searchterm= [keyword meta tag]" 

if make own custom tag, outputs meta tag, can store value somewhere when tag run.

edit

that assumed meta tags on jsp page. if they're not (as indicated in comments), , need extract them external html file, you're going need html parser of sort (or ugly/unreliable regular expressions). might want try http://jsoup.org/.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -