File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes when to use jsp xml syntax Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "when to use jsp xml syntax" Watch "when to use jsp xml syntax" New topic

when to use jsp xml syntax

Pat Villa

Joined: Jan 05, 2004
Posts: 19
i'm new to jsp so this is probably a basic question.
I'm just wondering if the jsp xml syntax is something everyone should shift to, or is it a case to case basis?
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
In my opinion you should choose for each case. Generally if I'm using JSP, I use the regular <%-style syntax as it's simpler and more familiar to most people. For one project where I was generating jsp files from XML using XSLT, I needed to use the XML syntax, so I did.
Use whichever is most appropriate.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

Welcome to the Ranch patlv23!
You'll find this forum a great place to seek help on JSP pages, and there aren't many rules you'll have to worry about, but one is that proper names are required. Please take a look at the JavaRanch Naming Policy and change your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.
JSP Forum Bartender

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: when to use jsp xml syntax
jQuery in Action, 3rd edition