Path: csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Stanimir Stamenkov Newsgroups: comp.lang.java.programmer Subject: Re: get head tag data Date: Tue, 26 Apr 2011 23:01:41 +0300 Organization: A noiseless patient Spider Lines: 24 Message-ID: References: <13d79f2e-d496-4896-ad0b-2ab658818b51@l2g2000prg.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Apr 2011 20:01:40 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="2F9wFk8uhjDHDbuneVzw7g"; logging-data="16450"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+D3ENoPYQTeu4RZUqfIQce" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0.2pre) Gecko/20110426 SeaMonkey/2.1pre In-Reply-To: <13d79f2e-d496-4896-ad0b-2ab658818b51@l2g2000prg.googlegroups.com> X-Face: )>>ChyF_H i want to retrieve data that is available in between > tag...in jsp using programming.. > any one know that how to fetch that data..?? If you have the whole jsp content in a String variable, you could use regular expression, e.g.: String jspContent; ... String headContent = jspContent .replaceAll("(?s).*(.*).*", "$1"); System.out.println(headContent); You may read the java.util.regex.Pattern class documentation and the Java Tutorial lesson on Regular Expressions for more info: http://download.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html http://download.oracle.com/javase/tutorial/essential/regex/index.html -- Stanimir