java - forward from spring jsp to spring jsp -


in catalog webapp/web-inf/views located jsp pages want forward 1.jsp 2.jsp

in 1.jsp write

<a href="2.jsp?id=${candidate.id}">${candidate.name}</a> 

but doesn't work. how fix it?

use <c:url , value attribute of <c:url set href link other jsp. example, be:

<a href="<c:url value="2.jsp?id=${candidate.id}" />">${candidate.name}</a> 

i had used in following manner in webapps (where circuits folder under /web-inf/views):

<a href="<c:url value="/circuits/${circuit.circuitid}/edit" />">edit circuit</a> 

Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -