I could not understand your question, I think. But maybe you should check
the location of the Java file which contains the MsgBox class. You should
then try to invoke it not as a bean to check if it is working.
fribeiro
----- Original Message -----
From: "ganesh" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 31, 2000 6:30 AM
Subject: Problem accessing a java file from a jsp file.
> Hi there..
>
> My requirement is to capture some information from a page
> and validate it.
> The flow is that I call the .jsp file in the browser and
> this has to call
> the .java file to validate.Then pass control to another
> .java file which
> will write the contents as a .html file into a file system.
>
> My .jsp file looks like this...
> -------------------------
> <html>
> <head><title>Code Details</title>
> </head>
> <body bgcolor="#ffffff" background="background.gif">
>
> <%@ include file="code_detail.html" %>
>
> <%@ page language="java" %>
> <jsp:useBean id="msg" scope="application" class="MsgBox" />
>
> <%
> if (request.getParameter("version") == null)
> {
> msg.setMessage("This field cannot be blank.");
> msg.showMessage();
> }
> %>
> </body>
> </html>
>
> The .java file has the class MsgBox() and methods like
> setMessage(),
> showMessage() which you can see from the code itself. I have
> a problem in
> accessing the .java File(which is a bean as i have
> understood) from the
> .jsp file. The browser throws up HTTP 500 - Internal server
> error.
> How do I solve this ?
>
> Thanx....
> Ganesh.
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets