File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Server-Side Includes (SSI) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "Server-Side Includes (SSI)" Watch "Server-Side Includes (SSI)" New topic
Author

Server-Side Includes (SSI)

Nazmul Huda Sarkar
Ranch Hand

Joined: Feb 01, 2002
Posts: 317
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


Nazmul<br />SCJP,SCWCD,IBM OOAD with UML
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
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

Joined: Feb 01, 2002
Posts: 317
Yes Axel..this book is outdated..but what about my problem ? :-(
Axel Janssen
Ranch Hand

Joined: Jan 08, 2001
Posts: 2164
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
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040

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


Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
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

Joined: Jan 08, 2001
Posts: 2164
Satya,
its about an outdated functionality mentioned in Jason Hunters "Servlet Programming" from 1998.
Axel
Nazmul Huda Sarkar
Ranch Hand

Joined: Feb 01, 2002
Posts: 317
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...
Guy Allard
Ranch Hand

Joined: Nov 24, 2000
Posts: 776
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

Joined: Feb 01, 2002
Posts: 317
Thanks Guy...
I must buy a new book of Jasson Hunter ans the More Servlet book...
 
IntelliJ Java IDE
 
subject: Server-Side Includes (SSI)
 
IntelliJ Java IDE