You can find the Query String by using request.getQueryString()
So you could do:
<% if (request.getQueryString() == null){
out.println("nothing is passed");
}
else
{
out.println("Something is passed");
}
%>
-----Original Message-----
From: Manish Mandelia [mailto:mmandelia@y...]
Sent: Wednesday, February 28, 2001 3:29 PM
To: Pro_JavaServer_Pages
Cc: preetisikri@h...
Subject: [pro_jsp] Re: how to check QueryString
replace QuesryString with
request.getParameter("variablenamebeingpassedin")
--- Preeti <preetisikri@h...> wrote:
> 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
>