Is there a way to write comments using jstl?

As a good coding practice, we shouldn't use the scriptlet inside the jsp. I want to write comments in my jsp for other developers, but don't want to show it to the client when the page is converted to html.

Can the following code be written with jstl or El?

<% 
//for perfromance we redirect control to this jsp
//as this jsp don't load unused dom ,css , js
%>

      

I couldn't find anything on the internet about this?

+3


source to share


1 answer


not,

you cannot write a comment using EL Language, however you can use JSP comments, which will be hidden from the user and no scriptlets are needed



         <%-- This is a Hidden Comment.  --%>

      

+4


source







All Articles