Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why dissimilar output for the same jsp code in the tomcat6 server?

 
Guy Emerson
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I wrote the following code in notepad and in myeclipse and deployed in tomcat6 server in two separate applications "jstlex" deployed directly in webapps of tomcat6 server and "jstlex2" deployed using myeclipse in the same server.





The output of this page when run from the jstlex2 shows the following result
This is my JSP page.
the message is= Hello how are you Brendon
This another line without using identifier HAPPY
My name is Brendon


The output of this page when run from the jstlex shows the following result
This is my JSP page.
the message is= ${msg} Brendon
This another line without using identifier ${"HAPPY"}
My name is ${name}



Why is the difference in the output?
 
Madhan Sundararajan Devaki
Ranch Hand
Posts: 312
Java MS IE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possibility is that, myeclipse does not seem to recognise template libraries and is rendering the place-holders as such, whereas in Tomcat the template libraries are recognised and the place-holders substituted properly.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic