We have mentioned that what we do in a jsp is write java codes inside a html page or rather html tags. for that purpose there are several ways to do so which we will learn now onwards. Two major ways are found in doing so. They are
· Scripting
· Xml based tags and EL(Expression Language)
We will talk about these seperately. First we’ll talk about Scripting. Scripting is the way to write pure Java code inside html page. We can place our java code in this way <% some java code%>. The <% %> element is called a scriptlet. The web container identifies this and seperate java codes from html when the jsp page translation is done. This is very usefull for a developer who is familiar only with java and who can make the UI (user Interface) himself.


We can use many scripting elements in our jsp page. And also we can use html tags even inside these scriptlets in this way.
This will generate five text boxes in the jsp page. There are some more to learn in scripting. Lets discuss that in the next chapter.

