Quantcast
Channel: Add JSP Java code to placeholder attribute in HTML - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Mingle Li for Add JSP Java code to placeholder attribute in HTML

Thanks @BoDidely for answering my question!Answer: Use <%= instead of <% and don't exit the String quotes!Correct code:<input value="" name="text-name" type="text" class="input-2"...

View Article



Add JSP Java code to placeholder attribute in HTML

I'm trying to make a basic CAPTCHA in JSP by generating two random numbers between 1 and 10 (inclusive) and saying, "What's _ + _?" I started off with this:<%@ page import="java.util.Random"...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images