1

i have opened url "pathofServer/bookingSlot.jsp?slot=Slot2"

var clickedSlotNo=this.getElementsByTagName('p')[0].innerHTML;
        var url="bookingSlot.jsp";
        url +="?slot=" +clickedSlotNo;
        window.open(url,"_self");

the above code is part of javascript fuction present in xyz.jsp file,from this iam opening a new jsp named bookingSlot.jsp ,and i am able to open page but i am not getting how to get the value of slot in new bookingSlot.jsp. Please help me..

1 Answers1

0

In your bookingSlot.jsp file, add following snippet:

<%
    String slot = request.getParameter("slot");
%>
Sky
  • 6,581
  • 8
  • 28
  • 40