• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

outputting servlet version in the jsp

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Quick (hopefully easy) question:

Is there a way to dump out all the jsp/servlet versions in a jsp file (ie. servlet version 1.2 etc)?

My problem is I'm using an ancient app server and the document is almost nil, and I can't find the servlet version number. Any ideas?

Thanks!
 
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Have you checked the APIs in the JavaDoc?
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can't imagine that it wouldn't be easier to just name the server and version and either search the web or ask here.

You *might* be able to pull apart its servlet API library and check for DTDs or something.
 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Bear Bibeault wrote:Have you checked the APIs in the JavaDoc?



hum, depending on what you mean. Are you thinking looking for methods that exist in one version and not the other? and keep working my way up until something just doesn't exist?

Heh, I thought about that, but I was sorta hoping there was an easy solution for this. Might have to just go back to this.
 
Bear Bibeault
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, just look in the javadoc for ServletContext.
 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:I can't imagine that it wouldn't be easier to just name the server and version and either search the web or ask here.

You *might* be able to pull apart its servlet API library and check for DTDs or something.



Just to note, I'm using Resin 2.1.17.
 
Bear Bibeault
Sheriff
Posts: 67590
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If I recall correctly: Servlets 2.3 and JSP 1.2
 
David Newton
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think that's correct (ah, memories)... and Google:

http://www.nabble.com/Which-servlet-spec-supported-by-Resin-2.1.16--td3950072.html
http://www.caucho.com/resin-2.1/ref/jsp.xtp
 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

David Newton wrote:I think that's correct (ah, memories)... and Google:

http://www.nabble.com/Which-servlet-spec-supported-by-Resin-2.1.16--td3950072.html
http://www.caucho.com/resin-2.1/ref/jsp.xtp



ahh, you guys are awesome, thanks!
 
Beware the other head of science - it bites! Nibble on this message:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic