This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

outputting servlet version in the jsp

 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you checked the APIs in the JavaDoc?
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • 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
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, just look in the javadoc for ServletContext.
 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64833
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I recall correctly: Servlets 2.3 and JSP 1.2
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
 
Joe Sal
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


ahh, you guys are awesome, thanks!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic