Here is the example of what i am asking
<%
String variable="Value";
out.println("<input type='hidden' value="<%=variable%>" "/);
%>
Here is the example of what i am asking
<%
String variable="Value";
out.println("<input type='hidden' value="<%=variable%>" "/);
%>
 
    
    In the Scriptlet you can use the java syntax like this:
<%
String variable="Value";
out.println("<input type='hidden' value='" + variable + "'>");
%>
But you should try avoiding scriptlets at all. Read more: How to avoid Java code in JSP files?
 
    
    