Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

unexpected type required: variable found : value

802552Jun 6 2008 — edited Jun 6 2008
Hello, these are my errors:

PWC6197: An error occurred at line: 43 in the jsp file: /jsp/ListRedirect.jsp
PWC6199: Generated servlet error:
string:///ListRedirect_jsp.java:96: unexpected type
required: variable
found : value

PWC6197: An error occurred at line: 43 in the jsp file: /jsp/ListRedirect.jsp
PWC6199: Generated servlet error:
string:///ListRedirect_jsp.java:96: incomparable types: java.lang.String and int


==================================

any suggestions??


<% 	
if (listData.getListURL()= null || listData.getListInfo() == 0) 

{

	 	
		String baseUrl = "/content/listings.html?";
	    String listUrl = null;
	
    		if (userData.isAgentType()) {
      		listUrl = parentPage + baseUrl + "ag_id=" + userData.getAgentID();
    		}  if (userData.isBrokerType()) {
    		listUrl = parentPage + baseUrl + "br_id=" + userData.getAdverID();
    		}  if (userData.isOfficeType()) {
    		listUrl = parentPage + baseUrl + "ag_id="= + userData.getAdverID();
    		} else {
      		
    		listUrl = parentPage + "/content/homefinder.html";
		
      			
    		}
    		 if (listData.getListURL() && listData.getListInfo() == 1) {
        	    		
    			listUrl = listData.getListURL();
        	
    	}
    
      	else {
      		listUrl = parentPage + "/content/homefinder.html";
      	}
	}
 %>	
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 4 2008
Added on Jun 6 2008
1 comment
903 views