• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

tomcat JSP page trnslation behaviour

 
lalit upadheyay
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic