Because when you set your form method to get
, what's in the form is gonna be added as querystring and therefore the querystring inside action
attr is being ignored. Try to add your values as hidden fields to your form to get them like:
<form action="loader.jsp" method="GET">
<input type="hidden" name="WindowName" value="abc">
<input type="hidden" name="compname" value="xyz">
</form>
BTW this is not a jsp issue. This is the html's form
element behaviour.