Web Java - begginer question | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Web Java - begginer question

if i use scriptlet (JSP) inside HTML code, that is work?

23rd Nov 2016, 11:21 PM
lionsuud
lionsuud - avatar
2 Answers
+ 46
Yes, you can do something that: <HTML> <BODY> <%java.util.Date date = new java.util.Date(); %> <% // Este scriptlet genera salida HTML out.println( String.valueOf( date )); %> </BODY> </HTML>
23rd Nov 2016, 11:26 PM
Jose
+ 2
Good example
27th Nov 2016, 11:00 PM
Sergio Almenara