I have added a checkbox to the advanced-search.jsp the default value should be true and inside the SearchContext.java I want to use that value of that checkbox
How do I get it from the jsp page into my object variable ?
You have to declare your checkbox as a JSF component and bind it to your JSF backing bean (a modified version of the AdvancedSearchDialog) to automatically get the value from a Java class. If you are not accustomed to JSF, you should have a look at Sun's tutorial.