I am trying a pass a request parameter to another jsp page.
On running my page, I am getting js error in browser.

Error details...

Webpage error details

Message: Object required
Line: 117
Char: 8
Code: 0

Let me paste some of my code for ur better understanding,

--Interface.jsp

Code:
<f:view>
<h:form name="wnLoginForm">
<h:panelGroup>
<h:outputText value="Service Type"/>    
<h:selectOneMenu id="lstService" value="#{UserBean.serviceType}">
<f:selectItems value="#{UserBean.serviceItems}"/>
</h:selectOneMenu>
</h:panelGroup>
 
 <h:panelGroup>
 <h:commandButton action="#{UserBean.submit}" id="submitButton" value="Generate"/>
 
 <c:choose>
 <c:when test="${UserBean.responsexml == null}">
    <h:inputHidden id="hdid" value="#{UserBean.serviceType}"/>		    		      
     <script type="text/javascript">
     var myForm = document.getElementById('wnLoginForm');
     var serviceid = document.getElementById(myForm.name+":"+hdid).value;
     window.open("servicePop.jsp?value="+serviceid,'AdviserSearchResults',"width=400,height=450,left=20,top=20,menubar=no,location=no,resizable=yes,status=yes");
    </script> 

 </c:when>
 </c:choose>
</h:panelGroup>
</h:form>
</f:view>
--UserBean.java

Code:
public void setServiceType(String serviceType) {
		this.serviceType = serviceType;
				
}
--servicePop.jsp

Code:
<%
String hdService = request.getParameter("value");
%>
<tr>
<td valign="top" colspan="3"><div style=""><strong>Webservice error</strong></div>
<br>
Order does not exist for <%=hdService %>. Please choose proper service type<br>
<br>
</td>
</tr>
If any questions please let me know..