Users Pricing

forum

home / developersection / forums / how to avoid java code in jsp-files?

How to avoid Java Code in JSP-Files?

Anonymous User 2362 07 May 2015
I'm new to Java EE and I know that something like the following three lines

<%= x+1 %>
<%= request.getParameter("name") %>
<%! counter++; %>
is an oldschool way of coding and in JSP version 2 there exists a method to avoid Java code in JSP files. Can someone please tell me the alternative JSP 2 lines, and how this technique is called?

I am a content writter !


1 Answers