Solved

Check if  query variable exists?

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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Help with LDAp login using jsp 6 114
best way to search/remove a file from an EAR file 3 108
'exit' is not valid keyword in java 14 152
iterator/ListIterator approach 17 27
SEO can be a real minefield to navigate, but there are three simple ways to up your SEO game just be re-assessing your content output.
Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

772 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