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,


<h:form name="wnLoginForm">
<h:outputText value="Service Type"/>    
<h:selectOneMenu id="lstService" value="#{UserBean.serviceType}">
<f:selectItems value="#{UserBean.serviceItems}"/>
 <h:commandButton action="#{UserBean.submit}" id="submitButton" value="Generate"/>
 <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;


public void setServiceType(String serviceType) {
		this.serviceType = serviceType;

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