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

c# - Unity IoC Lifetime per HttpRequest for UserStore -

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

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -