faisal bhat
faisal bhat

Reputation: 319

java server pages and html

From what I understand a jsp is responsible for dynamically generating html pages, which are later sent to the client browser for viewing. But then why do browsers show a .jsp extension while viewing some pages? Is it possible to view a .jsp file in a browser?

Upvotes: 1

Views: 236

Answers (2)

Quentin
Quentin

Reputation: 943571

But then why do browsers show a .jsp extension while viewing some pages?

Because, traditionally, JSP files have .jsp file extensions, and URLs map directly onto files on a filesystem (these days the front controller pattern means you see less of that).

Is it possible to view a .jsp file in a browser?

Not an arbitrary one. Servers execute server side programs and return the output to the client, not the program itself.

Upvotes: 2

Marten
Marten

Reputation: 117

You need to have a server to view jsp files. I think you can find your answer here

Upvotes: 0

Related Questions