Solved

Check if  query variable exists?

Posted on 2003-12-04
1
286 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

Independent Software Vendors: 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

Suggested Solutions

Title # Comments Views Activity
struts hibernate integration example 28 150
spring example non maven 4 100
Suggestion on WebSite Template Sites 6 117
difference between sorce folder and folder in eclipise 3 45
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
We have put together a white paper that aims to explain how MSPs can both improve their offering and ease the pain of after-hours service by: -Suggesting changes to workflow -Indicating how to rework policy to suit your team -Providing ConnectW…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

730 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