aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Exception on load of a jsp with EL function call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Exception on load of a jsp with EL function call" Watch "Exception on load of a jsp with EL function call" New topic
Author

Exception on load of a jsp with EL function call

Krutika Ravi
Greenhorn

Joined: Feb 11, 2010
Posts: 23
Hi,
I am building an simple Email Client for which I am implementing the concept of El Functions. The idea is on click of the submit button an EL Function gets called which is responsible for Connection with the Mail server. However on executing the following code I am unable to even view my login page. I get the following Exception:

javax.servlet.ServletException: java.lang.NoClassDefFoundError: javax/mail/AuthenticationFailedException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)





jsp file:




.tld




Thanks

Krutika
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Did you include mail.jar and activation.jar in your web app?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61661
    
  67

Krutika Ravi wrote:The idea is on click of the submit button an EL Function gets called

That is not going to work. The EL (including al EL functions) are evaluated on the server long before the page gets sent to the browser where JavaScript can be executed. So there's no way to "call" an EL function upon a button click. You either need to execute some JavaScript, or submit the form.

Please read this article to understand how JSP works.
Krutika Ravi
Greenhorn

Joined: Feb 11, 2010
Posts: 23
Thanks Bear. I see your point now.

Kind Regards
Kru
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception on load of a jsp with EL function call