File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Why dissimilar output for the same jsp code in the tomcat6 server? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Why dissimilar output for the same jsp code in the tomcat6 server?" Watch "Why dissimilar output for the same jsp code in the tomcat6 server?" New topic
Author

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

Guy Emerson
Greenhorn

Joined: Dec 14, 2010
Posts: 27
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

Joined: Mar 18, 2011
Posts: 312

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.


S.D. MADHAN
Not many get the right opportunity !
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why dissimilar output for the same jsp code in the tomcat6 server?