Solved

Check if  query variable exists?

Posted on 2003-12-04
1
287 Views
Last Modified: 2010-04-01
IS it possible to see if a query variable exists? For example, If page A passes "agreementAccepted"  and page B doesn't then on page C, can I check for the parameter or will it bomb??? Can you check something if it doesn't exist... null?) If I can how???



//////////////////////////
Page C
/////////////////////////

String agreementAccepted = request.getParameter("agreementAccepted");
      
      if( agreementAccepted != null ){ //
            do something
          }
0
Comment
Question by:894359
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 18

Accepted Solution

by:
bobbit31 earned 250 total points
ID: 9877028
you have it right.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Multi-threading long-running processes can have a significant increase in overall performance and drastically decrease over time it takes for a process to complete. Unfortunately, not all applications support native multi-threading, some by design a…
Gain an elementary understanding of Blockchain technology.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question