• Post Reply Bookmark Topic Watch Topic
  • New Topic

about JSP syntax

 
Sujittt Tripathyrr
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I want to know about what is the differences between the JSP directive syntax and JSP XML syntax.Pls give any real time scneriaos.

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP Document syntax (the strict XML syntax ) is intended for the containers to use internally as an intermediary representation, or to make it easy for code to auto-generate JSP pages by serializing an internal DOM.

It is not intended for humans to hand-code or maintain.
[ July 13, 2006: Message edited by: Bear Bibeault ]
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
'XML syntax' is a little ambiguous.

In older versions of JSP the <jsp:getProperty ../> tags were referred to as the XML Sytnax tags (as opposed to <%=beanName.getProperty()%>).

It is now possible to create an entire JSP page under a strict XML doctype; something different entirely.

Since you are asking about the difference between 'directives and xml syntax', I suspect you may be asking about the difference between <%@ page include...%> and <jsp:include .../> tags.

Please elaborate on your question so we understand what it is that you're asking.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good point.

The OP needs to let us know whether he's inquiring about the difference between JSP Pages and JSP Documents, or the difference between directives and actions.
 
Sujittt Tripathyrr
Ranch Hand
Posts: 96
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is different between directive and actions.

Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65664
129
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In that case, see the JSP FAQ where this is covered.

(And perhaps you've seen why it's important to be precise when asking questions).
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!