Hi there:

I am using SDK1.2.2 and JSWDK1.0.1.

I met a strange problem of Unhandled error! It is said
it can not find my *.class. Any one can help me?

Thanks a lot.

Smart


I put my *.jsp and *.html in

C:\jswdk-1.0.1\Webapp\jsp\testOne\

I put my *.java and *.class in
C:\jswdk-1.0.1\Webapp\Web-inf\jsp\beans\testOne\
 Actually i just copy the errrorpage example of
JSWDK1.0.1 and only change the name.

The *.jsp page  like this:

<%@ page import="testOne.Golf"
errorPage="errorpge.jsp" %>
<jsp:useBean id="test" scope="request"
class="testOne.Golf" />
<%
String name = null;

                if (request.getParameter("name") ==
null) {
%>
<%@ include file="/jsp/testOne/golferror.html" %>
<%
} else {
test.setName(request.getParameter("name"));
if (test.getName().equalsIgnoreCase("integra"))

name = "acura";
if (name.equalsIgnoreCase("acura")) {
%>
<H1> Yes!!! <a href="http://www.acura.com">Acura</a>
is my favorite car.
<%
                  }
                }
%>
</body>
</html>

my Golf.java is ( I use javac Golf.java to create the
class)

******************
package testOne;

import java.io.*;
import java.lang.*;

public class Golf {

  String name = "";
  public String getName () {
        return name;
  }

  public void setName (String name) {
        this.name = name;
  }

 }
**********************************



__________________________________________________
Do You Yahoo!?
Send online invitations with Yahoo! Invites.
http://invites.yahoo.com

===========================================================================
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

Reply via email to