csarathe
csarathe

Reputation: 430

Is there any way to write comments using jstl?

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

Is there any way we can write following code using 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 any thing in internet on this ?

Upvotes: 3

Views: 1499

Answers (1)

Friendy
Friendy

Reputation: 519

no,

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

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

Upvotes: 5

Related Questions