Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<% String s1=request.getParameter("username");
%>
<jsp:forward page="/success.jsp" xmlns:jsp="#unknown">
<jsp:param name="reg" value="<% = s1 %><br mode=" hold=" /></jsp:forward></xml>"></jsp:param></jsp:forward>
Posted
Updated 14-Feb-13 22:42pm
v3

1 solution

This is not a proper approach. You should use mvc(model-view-controller) architecture.
And put the validation logic in controller. However for the above scenario :


Java
<% if(valid username){
%>
// forward to success page
<% }else{ %>
// forward to failed page
<% }%>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900