Is it a good practice to write Javascript code into jsp?

Is it a good practice to write Javascript code into jsp or we should keep them in different files. What does the standard say?

No.

There is no standard, unless you consider Best Practices as such. In this case it would be the ‘Separation of Concerns’ principle.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.