GeeCON Prague 2014*
The moose likes Tomcat and the fly likes what is the diff between tomcat 4.1 and 6.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Tomcat
Bookmark "what is the diff between tomcat 4.1 and 6.0 " Watch "what is the diff between tomcat 4.1 and 6.0 " New topic
Author

what is the diff between tomcat 4.1 and 6.0

santosh dhulipala
Ranch Hand

Joined: Oct 21, 2010
Posts: 52
we are upgrading our application server and noticed a intresting thing
which i couldn't find reason hope i will get help
in tomcat 4.1
if we use forward action tag by closing explicitly is working fine

but in tomcat 6 if we are having the explicit closed action tags it showing exception that
the particular line should have param names and values
but when i change the action tag to self closing one it is not showing exception may i know the reason





Thanks & Regards
Santosh Kumar.D

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

The jsp:forward syntax looks like this:


or



In the second case, notice the "+" sign for the jsp:param, which means one or more occurrences of the jsp:param within the jsp:forward. So if you don't have any params to pass, then you are supposed to use the first syntax.


[My Blog] [JavaRanch Journal]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10146
    
165

As for why it works differently on Tomcat 4.x, I'm not sure. Either Tomcat 4 was lenient or maybe the spec changed for the jsp:forward tag.
 
GeeCON Prague 2014
 
subject: what is the diff between tomcat 4.1 and 6.0