?
Solved

Check if  query variable exists?

Posted on 2003-12-04
1
Medium Priority
?
288 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 1000 total points
ID: 9877028
you have it right.
0

Featured Post

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

Check out the latest tech news, community articles, and expert highlights in August's newsletter.
If you're a modern-day technology professional, you may be wondering if certifications are really necessary. They are. Here's why.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…

777 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