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

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -