java - Pass parameters to url in jsp -


is right way send parameter along url in jsp page ?

 <a href="cancelrequest?userid=<%=idperson%>&userrnamee=<%=namee%>" onclick="return confirm('are sure want cancel request?');">  <input type="submit" value="cancel request"></input>  </a> 

i tried not taking namee field .please help

sample code:

<input type="button" value="adduser" class="button"  onclick="location.href='usercontroller?action=insert'"/></p>  <input type="button" value="back" class="button"  onclick="location.href='employeecategory.jsp'" /> 

Comments

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -