Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

out.write() in JSP

  Asked By: Kent    Date: Sep 24    Category: Java    Views: 902
  

Out of curiosity, Why is it that this works:

if( (startNum+9) < numOfResults){
%><%=(startNum+9)%><%
}
else{
%><%=numOfResults%><%
}

and this does not? :

if( (startNum+9) < numOfResults){
out.write(startNum+9);
}
else{
out.write(numOfResults);
}

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on out.write() in JSP Or get search suggestion and latest updates.




Tagged: