View Full Version : How to understand <% //<input

May 11th, 2007, 01:31 AM
I sam a line of code in a jsp page:

<% //<input type="text" name="test" value="abc" class="Input" size="28 maxlength="255" /> %>

How to interprete this line? Why put // (sounds like commentting out <input)
why put in <% %>



May 11th, 2007, 01:35 AM
Good question… maybe that is to show what belongs there eventually? Hard to say without knowing the context.

May 11th, 2007, 08:00 AM
That "test" name makes it seem as if a programmer was testing a function and then either thought better of it or decided to go back to it later. Either way, I'd just ignore it but if you're doing markup then be prepared to possibly style an input field.

I say this because I am working on that exact thing as I type this. :D