• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Server-Side Includes (SSI)

 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Tomcat4.0 for my servlet engine...
But my SSI does not run....
Jasson Hunter says that "A server that supports SSI detect the <SERVLET> tag...." ..what does it mean....doesn't Tomact4.0 support SSI ? If it does whats my fault ? I'm using IE5
 
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds if you are using the outdated 1998 version of this book.
Its good, but really a little outdated.
If I would be you I would buy "More Servlets" by Marty Hall or "Professional JSP2" by wrox press.

Axel
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes Axel..this book is outdated..but what about my problem ? :-(
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nazmul.
As far as I know, the Servlet tag is not part of the current J2EE specification.
So it has no relevance for the exam and should not be used in current apps.
I would say: The functionality belongs to the presentation layer, so use JSP.
Use jsp-include or forward directive for that functionality.
I think there was a discussion about using include and forward in this forum some time ago.
But again: Its better to use JSP.

Just my 0.02
Axel
 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But my SSI does not run....
Jasson Hunter says that "A server that supports SSI detect the <SERVLET> tag...." ..what does it mean....doesn't Tomact4.0 support SSI ?

Could you pl. elaborate on what you want to do?
And what has JSP to do with this problem?
Servlets can do everything a JSP can.... ...looks like I am missing something big here ?
- satya
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
the Servlet tag is not part of the current J2EE specification
what exactly does this mean......?
Are you trying to pick on <SERVLET> tag rather than <servlet>. If so, I am with you on this stmt.
- satya
 
Axel Janssen
Ranch Hand
Posts: 2166
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Satya,
its about an outdated functionality mentioned in Jason Hunters "Servlet Programming" from 1998.
Axel
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just made the simplest servlet to print hello. and I want to call that servlet from a html page. what should i do ? from Jasson Hunter book (1st edition)i found to use <SERVLET> tag.... is there any differance between <SERVLET> and <servlet> tag ? but its not wirking. one thing can be done in many ways...but i want to do it using <SERVLET> or <servlet> tag...may be it has its own pros&cons. ...i dont want to learn Java for just passing the exam...
 
Ranch Hand
Posts: 776
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think I understand you are saying you code <SERVLET> in your html page, and expect that to call a servlet?
That's not how it works.
You can call a servlet from POST method of <form>.
My recollection is that at one time there was discussion in the HTML groups abut having a <servlet> tag that was somewhat like <applet>, but it never materialized.
<applet> is also now deprecated in favor of <object>. See the HTML specs at www.w3c.org.
And please do not work with old books or documentation. You are much better off just searching the web for current examples.
Regards, Guy
[ March 12, 2002: Message edited by: Guy Allard ]
 
Nazmul Huda Sarkar
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Guy...
I must buy a new book of Jasson Hunter ans the More Servlet book...
reply
    Bookmark Topic Watch Topic
  • New Topic