Solved

Check if  query variable exists?

Posted on 2003-12-04
1
282 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
1 Comment
 
LVL 18

Accepted Solution

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

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
default methods vs abstract class 1 101
unit test DAO layer 1 133
J2SE 5.0 metadata 1 44
oracle fusion vs MQ 2 94
Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
In  today’s increasingly digital world, managed service providers (MSPs) fight for their customers’ attention, looking for ways to make them stay and purchase more services. One way to encourage that behavior is to develop a dependable brand of prod…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now