Use
<% String str = request.getQueryString();
if(str == null)
out.print("Nothing is passed");
else
out.print("Query String = " + str);
%>
> -----Original Message-----
> From: Preeti [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 2:52 PM
> To: [EMAIL PROTECTED]
> Subject: queryString problem
>
> hey guys
> I have a JSP page in which I'm refreshing the same page and when I refresh
> I
> pass some value so now can anybody tell how can I check if the QueryString
> has something or not :
>
> I wanna do something like this : --
>
> <% if (QueryString=null){
> out.print("nothing is passed");
> }
> else
> {
> out.print("Something is passed");
> }
> %>
>
> Help Guys
> Regards Preeti
>
> ==========================================================================
> =
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
> DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets