View Single Post
Old 05-23-2012, 05:09 PM   PM User | #2
Old Pedant
Supreme Master coder!

 
Old Pedant's Avatar
 
Join Date: Feb 2009
Posts: 23,200
Thanks: 59
Thanked 3,996 Times in 3,965 Posts
Old Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to allOld Pedant is a name known to all
This is the JavaSCRIPT forum.

JSP uses JAVA.

The two have little in common other than the first 4 characters of their names.

A moderator will surely move this to the proper forum.

Having said that:

JSP pages *ARE* HTML pages. Only the code enclosed in <%....%> is Java.

So you can mix the two as you like.

Code:
<html>
<body>
<h1>See, this is HTML</h1>
<%
// and now we are writing Java code 
for ( int i = 0; i < 100; ++i ) { ... }
%>
And this is HTML again.
</body>
</html>
__________________
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.
Old Pedant is offline   Reply With Quote
Users who have thanked Old Pedant for this post:
zion_rulz (05-23-2012)