aspose file tools*
The moose likes JSP and the fly likes Only Java in Jsp? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Only Java in Jsp?" Watch "Only Java in Jsp?" New topic
Author

Only Java in Jsp?

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8919

Hi All,
Is it true that Java is the only allowed language in JSP 1.2.
What could be the reason.

I feel people who are using other languages do not want to use JSP.

Thanks in adv.


Groovy
Shawn Bayern
Author
Ranch Hand

Joined: May 06, 2002
Posts: 160
Originally posted by Pradeep Bhat:
Hi All,
Is it true that Java is the only allowed language in JSP 1.2.
What could be the reason.

I feel people who are using other languages do not want to use JSP.

JSP technically supports scripting languages other than Java, but that support is admittedly not much more than lip service. A container could come up with a proprietary way of supporting another language, but this wouldn't be portable. And that's the answer to your question: there's no way to support anything but Java portably. Microsoft's very big on supporting multiple languages at each layer in an application, but one reason they can get away with that is that, for all intents and purposes, they don't have to worry about portability across platforms. If you want the same JSP application to be deployable on Linux, Windows, and Solaris, Java is the only reasonable language to use anyway.
Having said that, keep in mind that scirpting code, like Java, within JSP pages is being strongly discouraged by most commentators anyway. Using tag libraries -- particular JSTL -- it's very easy to avoid using Java code entirely in your pages. This makes them more maintainable and more accessible to nonprogrammers. In fact, JSTL provides a mode whereby you can explicitly disable all "scriptlets" (scripting elements, to be more precise) if you choose to do so; this way, you can enforce good hygiene across your application.


Shawn Bayern<br />"JSTL in Action" <a href="http://www.jstlbook.com" target="_blank" rel="nofollow">http://www.jstlbook.com</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Only Java in Jsp?