aspose file tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes tomcat JSP page trnslation behaviour Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "tomcat JSP page trnslation behaviour" Watch "tomcat JSP page trnslation behaviour" New topic
Author

tomcat JSP page trnslation behaviour

lalit upadheyay
Ranch Hand

Joined: Jun 20, 2005
Posts: 110
Hi,

Can someone explain me the page translation behaviour of tomcat.

If there is syntax error in JSP code (e.g. missing a semicolon at the end of a scriptlet statement ), then tomcat generates the source code (.Java) but does not compile it (the .class file).

But sometimes tomcat even does not generate the source code (generates a 0kb .java file).

Can we correlate these things to some conclusion like trnslation error or compilation error for the purpose of SCWCD exam? if yes, then how?

Also can someone explain me the difference between the EL keywords null, nothing with satisfactory usage example.

Regards,
Lalit
[ December 11, 2005: Message edited by: lalit upadheyay ]

SCJP1.4, SCWCD1.4, SCBCD5.0(working on...)
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14671
    
  11

During translation phase, the container creates a java file where translation errors may occur. Then, it will compile de java code, where compilation errors may occur.

A missing semi-colon in a scriptlet will raise an error when the java code is compiled.


About the EL question, I don't understand which keyword you're talking about. 'null' and ?


[My Blog]
All roads lead to JavaRanch
Simon Brown
sharp shooter, and author
Ranch Hand

Joined: May 10, 2000
Posts: 1860
it's the empty operator and null literal, i want to know about.

So when can we refer an error as translation error and when as compilation error exactly ?

What kind of error we get when no source code (0kb .java) is generated ?

In both compilation error and the scenario when there is no source code, we get HTTP status code 500 (internal server error).
[ December 11, 2005: Message edited by: lalit upadheyay ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: tomcat JSP page trnslation behaviour
 
Similar Threads
Confused regarding isErrorPage
java.lang.NullPointerException on a jsp page
import binary file into JSP Page
I can't use meta-annotations.
jsp:getProperty action